adding up fields in a query

C

carol m

H

I hope somebody can help me before i completely go insane

I am writing a query using the design view. I have several 8 fields eg, price 1, price 2, price 3, price 5 etc etc. What i would like to be able to do is add up each of these fields to make up one value eg, price 1 + price 2 + price 3 = £400.00

Can anybody tell me how i can do it

Thanks in advance for your help

Carol
 
D

DDM

Carol, it's just as you describe. In the grid at the bottom of the design
view, go to the first available column on the right, click in the criteria
row (top row), and type:

Total:[price1]+[price2] etc.

Then press Enter. (You can give your formula any name; I'm just using
"Total" as an example.) Right-click your formula and select Properties.
Format as Currency. Run the query.

DDM
"DDM's Microsoft Office Tips and Tricks"
www.ddmcomputing.com

carol m said:
Hi

I hope somebody can help me before i completely go insane!

I am writing a query using the design view. I have several 8 fields eg,
price 1, price 2, price 3, price 5 etc etc. What i would like to be able to
do is add up each of these fields to make up one value eg, price 1 + price 2
+ price 3 = £400.00.
 
D

DDM

Carol, it's just as you describe. In the query design view, go to the first
available column on the right in the grid, click in the Criteria row (the
top row), and type:

Total:[price1]+[price2] etc.

Then press Enter. "Total" is the name of your calculated field (you can use
any name you want). The colon is a required separator. Enclose field names
in square brackets [].

Right-click your calculation and select Properties. Set the format to
Currency, then close the Properties box. Run the query.

DDM
"DDM's Microsoft Office Tips and Tricks"
www.ddmcomputing.com

carol m said:
Hi

I hope somebody can help me before i completely go insane!

I am writing a query using the design view. I have several 8 fields eg,
price 1, price 2, price 3, price 5 etc etc. What i would like to be able to
do is add up each of these fields to make up one value eg, price 1 + price 2
+ price 3 = £400.00.
 
M

Marc

carol m said:
Hi

I hope somebody can help me before i completely go insane!

I am writing a query using the design view. I have several 8 fields eg,
price 1, price 2, price 3, price 5 etc etc. What i would like to be able to
do is add up each of these fields to make up one value eg, price 1 + price 2
+ price 3 = £400.00.
Can anybody tell me how i can do it.
Put you cursor in the field area of an an empty column. Press the wand
button on the toolbar, this should bring up a query builder. Type in
TotalPrice: [price1] + [price2] + etc
HTH
Marc
 

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

Similar Threads

Help! Is this possible 2
Data Entry Confusion 1
Is it possible 5
Excel function needed 24
Form and Table issue - help needed. 1
creating a calculated field 3
Query. 2
can't find the right query 0

Top