View Full Version : Dealing with null values


carvind
12-03-2001, 12:25 PM
I have a query that returns values for two fields. In some cases, null values are returned and I would like the query to return the value 0 for both of them instead of a null. Can anyone a suggest a method to accomplish this? Any help would be greatly appreciated.

Rich
12-03-2001, 12:49 PM
Look up the Nz function.

carvind
12-03-2001, 01:08 PM
I tried NZ function but it didn't work. I am still getting null values instead of zeros.

Rich
12-03-2001, 02:19 PM
Nz([somefield],0)?

mstorer
12-04-2001, 03:56 PM
Yea, Nz([somefield],0)should work.