Hi there,

I'm having some trouble with validating input from the user.

The forms I have are.

Username
Pwd1 = Password
Pwd2 = Confirm Password
Group
Email
Surname
Forename

When the user click submit I need to loop through each of the forms and if any of them are empty I need to display the appropriate error message. I need to set these two item (Is_Error = True) and (ErrMsg = "Whatever")

Then what will need happen is:

Code:
If (IS_Empty = True) Then
    'The loop through and display all the error messages
Else
     'Process the form.
End If

Can anyone help?


Thanks