Question : Acces table calculated field and query filter

Hi,
I am newbe to Access and have two maybe simple (for experienced programmers and dba's) questions,
1) i have a table called entities, with the following fields:

entityname
portions
entityrate1
entityrate2
entityrate3
total1
total2
grand

What i need is to have is: total1 = entityrate1 * portions, total2 = entityrate2 * portions and grand = total1 + total2

is there a way in design mode that i can set this calculations (i tried the expression builder but it does not give me the table fields.) ? the ultimate goal is to perform all these thrugh unbond objects in forms and through queries but while we get there i wish that could be done as we enter data in the fields.

2) I have a second table, portiontotal this table has the following fields:
thisfood
entityname
grand
i wish the field entityname to read from entities through a query, which i did but now i want the query to filter based on the value of entityname field.

Thanks for any help!

Answer : Acces table calculated field and query filter

If you are using the Access Query design view, simply replace or add in the 'FieldName' portion of a you expressions preceded by the name you want to refer to it as i.e. Total1: [entityrate1] * [portions] and    Total2: [entityrate2] * [portions]

Then for grand - Grand: = [Total1] + [Total2]

If im reading question2 correctly then: in the criteria portion of the field column type in what you want filtered for.
Random Solutions  
 
programming4us programming4us