Getting the SUM

  • Thread starter jgrau via AccessMonster.com
  • Start date
J

jgrau via AccessMonster.com

I am having extream trouble totaling fields in a query. I am trying to total
numbers in several different fields in a query to populate a field in my form
Example:

WorkMonthsUsed: [Test1].[WMU]+[Test2].[WMU]+[Test3].[WMU]+[Test4].[WMU]

It will let me total two fields but when I enter another It fails.

Any Ideas?

"Thanks for your Support"
 
K

KARL DEWEY

Probably some nulls. Try this --
WorkMonthsUsed:
Nz([Test1].[WMU],0)+Nz([Test2].[WMU],0)+Nz([Test3].[WMU],0)+Nz([Test4].[WMU],0)
 
J

John W. Vinson

I am having extream trouble totaling fields in a query. I am trying to total
numbers in several different fields in a query to populate a field in my form
Example:

WorkMonthsUsed: [Test1].[WMU]+[Test2].[WMU]+[Test3].[WMU]+[Test4].[WMU]

It will let me total two fields but when I enter another It fails.

Fails... in what way? Error message? Null result? Computer catches fire?

How are your four tables related? Could you post the SQL view of the entire
query? Are you <shudder> using four identical tables for four different tests?
 

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