Validation not working

EHS

Registered User.
Local time
Yesterday, 21:49
Joined
Jun 23, 2011
Messages
22
Hi there
I've have a form used to input/edit people data. The form has an exit/save button which performs various tasks via the click event. One of the tasks is calling a subroutine to validate some of the form's fields (subroutine attached). The UPN validation works (the first check), but none of the others. I placed msgbox statements before each of the ifs and they are being displayed, but the fields which should not be blank are being allowed through. Any ideas?

Thanks in advance
 

Attachments

If they are blank and your test for ZLS (Zero Length String) is not picking that up, then that would suggest that they hold a Null value rather than a ZLS, so to cover all bases aslo test for Null values using the IsNull() function
 
Thanks John! That did the trick.
 

Users who are viewing this thread

Back
Top Bottom