If Else commands based on Empty fields

S

Sok Hong

I just added a command button. For this command button, I
want it to check if Field1 is blank, and if so I want it
to do nothing. If Field1 has something filled in, I want
it to go to add a new record. Any clue how I can go about
programming this? Thanks.
 
M

Mike Painter

Sok Hong said:
I just added a command button. For this command button, I
want it to check if Field1 is blank, and if so I want it
to do nothing. If Field1 has something filled in, I want
it to go to add a new record. Any clue how I can go about
programming this? Thanks.
Using the NZ function to check the field will check for both Null and empty
strings.
If you just want to see if it is Null you can use isNull.
 

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