Row sums in query

Leathem

Registered User.
Local time
Yesterday, 23:47
Joined
Nov 29, 2010
Messages
58
I can't seem to sum across the fields in a query. Each row consists of a name followed by ten number fields, and I'd like to get the total of the ten numbers in the row for that name. I've tried using an expression like check:field1+field2+field3..., but the sum is not displayed if any one of the fields in the row is blank (not all the fields in a row have numbers in them). I should add that while I use Access 2010 the result has to work on computers with 2007.
 
Last edited:
Have a look at the Nz() function.

Your expression will end up looking something like;
Code:
Nz([Field1],0) + Nz([Field2],0) + Nz([Field3],0)
 
Many thanks!! That seems to do it.
 

Users who are viewing this thread

Back
Top Bottom