Null Value to Zero

  • Thread starter Thread starter Jenn
  • Start date Start date
J

Jenn

Is there a formula, VB Coding, or SQL that will take a Null value, such as
1/0, and make it a 0?

Please advise.

Thank you in advance for your assistance.
 
You need to trap it before the error. 5 divided by 0 results in an
error.
Trap it this way --
IIF([X] Is Null OR [Y] Is Null, 0, [X]/[Y])
 
Back
Top