How to avoid #Num! being displayed?

path479

Registered User.
Local time
Today, 20:35
Joined
Jan 4, 2016
Messages
22
I have a text box and its control source is an expression as follow:

=[txtPrimaryWkpt_area]/[txtNLA]

When the value is Null, it is displaying "#Num!"

I have tried adding Nz around the expression to become

=Nz([txtPrimaryWkpt_area]/[txtNLA], 0)

However it makes no differences.

What is the best way to avoid the textbox displaying #Num!? Displaying as blank or 0 are both acceptable
 
=Nz([txtPrimaryWkpt_area], 0) /Nz([txtNLA], 1)
 
Hi arnelgp,

Thank you for your suggestion. Unfortunately "=Nz([txtPrimaryWkpt_area], 0) /Nz([txtNLA], 1)"does seem to work.

I ended up using the following
=IIf([txtNLA]=0,0,[txtPrimaryWkpt_area]/[txtNLA])
 

Users who are viewing this thread

Back
Top Bottom