MS Access Functions with Null Values

Pettor

Board Regular
Joined
Aug 8, 2015
Messages
175
Hi All and Happy New Year,

I have the below function in an MS Access query where I want to add two Expresions from this query. Unfortunately when one of the values is null, the outcome is again a null value.
Can someone help me on how to substitute the null value with zero so as to get the correct outcome?

(AV_FT_GL_H_HM+AV_FT_GC_A_AW)/2 AS EST_GL_H_HM,
(AV_FT_GL_A_AW+AV_FT_GC_H_HM)/2 AS EST_GL_A_AW

Thanks
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Basically, what I am trying to do is to substitute a null value with 0 when the sum of a function (i.e. Sum(Table.Value) is Null.
Is it possible?
 
Upvote 0
Hi All,

I think problem is solved by using the NZ function, replacing Null with Zero.
 
Upvote 0

Forum statistics

Threads
1,221,777
Messages
6,161,871
Members
451,727
Latest member
tyedye4

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top