PawloA
asked on
access modifying table fields
Hello.
Being fairly new to Access and having worked in DBASE and other database operations. I would like to know how to take two fields in one table, add them together and store the result in another field.
database table
----------------------
ex field 1 = price
value =4.44
field 2 = qty
value = 2
field 3 = result
value = (This is to be done by taking 4.44 x 2 = 8.88 and this value is stored in field3).
I know it is simple but I just have to figure out how to do this type of operation.
Being fairly new to Access and having worked in DBASE and other database operations. I would like to know how to take two fields in one table, add them together and store the result in another field.
database table
----------------------
ex field 1 = price
value =4.44
field 2 = qty
value = 2
field 3 = result
value = (This is to be done by taking 4.44 x 2 = 8.88 and this value is stored in field3).
I know it is simple but I just have to figure out how to do this type of operation.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
do you want it to occur for all rows or a specific row?
is this a data entry form? if its a form, it can be done in code on the form and update a hidden field...
is this a data entry form? if its a form, it can be done in code on the form and update a hidden field...
If you are using Access 2010 this can be accomplished with a calculated field
Add a calculated field to a table
Add a calculated field to a table
ASKER
I want to update certain rows based on criteria I enter in an input form which I have to find out to make.
create a query based on the table
change it to be an update query
write the top line to be the sum
[field 1]*[field2]
and select field 3 in the update to row.