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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query to total several fields

Status
Not open for further replies.

lpgagirl

Technical User
Feb 3, 2003
202
CA
Hello all:

I have a select query:

It contains the following fields:

WorkorderID (Group by)
ManHours1 (Sum)
ManHours2 (Sum)
ManHours3 (Sum)

Currently it returns the sum of labour for three different technicians working on the same workorder. I have an additional field called Total Man hours. I would like total man hours to return the sum of MH1, MH2 and MH3.

Problem: I cannot figure out how? (calculation)

Thanks as usual,



Jeannie
 
TotManHours: Nz(Sum(ManHours1),0) + Nz(Sum(ManHours2),0) + Nz(Sum(ManHours3),0)

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
more general advice on the topic is available in these fora. try search for "basRowSum"




MichaelRed


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top