Update one field from another field in same table

G

Guest

I've got a table that describes a product we sell. One of the fields
contains our cost for the product. Another field has our selling price. If
we buy it for a $1.00, I want to use a percentage markup to fill in the
selling price column automatically. What expression, if any, can I use to do
this. I realize I could use a query, but I would like the sell price to be
contingent, all the time, on the cost price.

Thanks for your help.
 
J

Joseph Meehan

Dave said:
I've got a table that describes a product we sell. One of the fields
contains our cost for the product. Another field has our selling
price. If we buy it for a $1.00, I want to use a percentage markup
to fill in the selling price column automatically. What expression,
if any, can I use to do this. I realize I could use a query, but I
would like the sell price to be contingent, all the time, on the cost
price.

Thanks for your help.

Tables are only for storing data. They don't do calculations.

Queries do calculations. They could even update a table with the
results, but this is not recommended. Access can recompute the results in a
query faster than it can look them up in a table and it does not use up
storage space in the process. It also avoids the problem of what happens of
one of the pieces of data changes and no one has run the update so your
calculated result would be out of date.
 
G

Guest

Joseph Meehan said:
Tables are only for storing data. They don't do calculations.

Queries do calculations. They could even update a table with the
results, but this is not recommended. Access can recompute the results in a
query faster than it can look them up in a table and it does not use up
storage space in the process. It also avoids the problem of what happens of
one of the pieces of data changes and no one has run the update so your
calculated result would be out of date.

Joseph:
Thanks for your help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top