If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Turning off "null propagation" when adding fields
I'm trying to add three numeric fields together in a query. Some of the
fields will have null values (in this context, the same a zero) from time to time. Because of "null propagation," I get a null sum if any one of the three fields is null. I want the sum of the available field values even if one or more is blank. How do I do this? |
#2
|
|||
|
|||
Turning off "null propagation" when adding fields
On Mon, 7 Jul 2008 14:52:01 -0700, rdra90 wrote:
I'm trying to add three numeric fields together in a query. Some of the fields will have null values (in this context, the same a zero) from time to time. Because of "null propagation," I get a null sum if any one of the three fields is null. I want the sum of the available field values even if one or more is blank. How do I do this? Look up the Nz function in VBA help. TotalOfFields:Nz([FieldA],0) + Nz([FieldB],0) + etc.... -- Fred Please respond only to this newsgroup. I do not reply to personal e-mail |
Thread Tools | |
Display Modes | |
|
|