Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiplying two query fields

Status
Not open for further replies.

Harr777

Programmer
Sep 25, 2003
71
US
Hello,
I need to multiply two fields from a query. I can add fields, no problem. Anything that I try doesn't work (I'm using the "*"). Also, I'm working in query design view.
Any sugestions?
-Thanks
 
"*" should work ie:
TotCost: [Qty]*[UnitPrice]

Duane
MS Access MVP
 
Duane,
I should have explained; I'm trying something like this:

TotCost: (qryOther![Qty])* (qryOther![UnitPrice])

When I go to run the query, I get prompted for input values. This kind of thing worked elsewere for me with addition.

What I'm doing not is multiplying in a calculated control text box. At least that's working fine.
 
Hi!

First you need to do the standard things; make sure you got all of the spelling correct (you can use cut and paste just in case a stray space is the problem), make sure qryOther is actually included in the query. Finally, you can put square brackets around qryOther as well as the field names:

TotCost: [qryOther]![Qty]*[qryOther]![UnitPrice]

Access would normally do this for you once it recognized what you were doing. One last thing I would do is switch to SQL view and see what is coming out there.

hth


Jeff Bridgham
bridgham@purdue.edu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top