If field is Null

R

Rob

Hi Everyone,

Certain controls on my form are dependant on other sections of the form to
be able to show a value.

Until these other controls have been selected they display "Error"

How can I code an If txtbx = Null or something to stop the word "Error"
showing up.

Thanks a lot this will help me tidy up the page a lot.

Rob
 
W

Wayne Morgan

Try the Nz function to return a value other than Null.

Example Control Source:
= Nz(txtMyTotals, 0) * 3

The Nz function will work in VBA code also.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top