Hi, Thanks for your help - I'm almost there. Problem - in Table I have say
column "Order1" - next column is "Quantity1" (say 20 ordered), next column is
"Price1" (say $1 each). I want the next column to be "Net1" (total of Q x P)
so I need to multiply the Q1 x P1 but I do not know how to do this - advice
gratefully received - thanks.
You do not do this in a Table. Storing derived data such as this in your table
accomplishes three things: it wastes disk space; it wastes time (almost
any calculation will be MUCH faster than a disk fetch); and most importantly,
it risks data corruption. If one of the underlying fields is subsequently
edited, you will have data in your table WHICH IS WRONG, and no automatic way
to detect that fact.
Instead, create a Query based on the table. You can include the price and
quantity fields from the table, and in a vacant Field cell put
Net: [Quantity1] * [Price1]
Now for a much more serious possible problem: if you have fields in your table
named Order1, Quantity1, Price1, Order2, Quantity2, Price2, ..., Order10,
Quantity10, Price10 then you *DO NOT HAVE A TABLE*. You have a Spreadsheet!
Access isn't a spreadsheet and should not use spreadsheet logic! Each item
ordered should be in a separate record in a different table, related one to
many to your orders table. Take a look at the Orders application in the
Northwind sample database which comes with Access, and perhaps also look at
Crystal's tutorial or the Database Design 101 links on Jeff's webpage:
Jeff Conrad's resources page:
http://www.accessmvp.com/JConrad/accessjunkie/resources.html
The Access Web resources page:
http://www.mvps.org/access/resources/index.html
A free tutorial written by Crystal (MS Access MVP):
http://allenbrowne.com/casu-22.html
MVP Allen Browne's tutorials:
http://allenbrowne.com/links.html#Tutorials
John W. Vinson [MVP]