I need to check for IsNull on four of the five controls on a form.
If there was only one control I would just write the code at the start of the procedure to
If IsNull Then
MsgBox "You must yadda yadda yadda", vbOKOnly + vbCritical, "Error"
Else
REST OF PROCEDURE
However the problem I run into is building a sequence of those If IsNull Then's
I need to check four of the five controls for a null value (but specifically not the fifth because it very well MIGHT have a null value)
Then I need the error messages to be control specific.
Any one able to give me a bit of sample code as to how this might be accomplished.
If there was only one control I would just write the code at the start of the procedure to
If IsNull Then
MsgBox "You must yadda yadda yadda", vbOKOnly + vbCritical, "Error"
Else
REST OF PROCEDURE
However the problem I run into is building a sequence of those If IsNull Then's
I need to check four of the five controls for a null value (but specifically not the fifth because it very well MIGHT have a null value)
Then I need the error messages to be control specific.
Any one able to give me a bit of sample code as to how this might be accomplished.