Error Trapping a Null or Blank query

G

Guest

I have a query that prompts the user for a "User Id". I need to trapping the
error if the user inputs a invalid ID or blank ID.

The query opens a form if the user ID valid.
 
C

Chris2

iholder said:
I have a query that prompts the user for a "User Id". I need to trapping the
error if the user inputs a invalid ID or blank ID.

The query opens a form if the user ID valid.


Air Code follows:

If IsNull(Forms!YourForm!YourControl.Value) OR <other expression> Then

<code if error>

Else

<code if no error>

End If


Sincerely,

Chris O.
 

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