you didn't post any changes, so I'm assuming you are still not checking for nulls.
add this function to the page:
Private Function tnull(s) As String
If IsNull(s) Or IsEmpty(s) Then
tnull = ""
tnull = s
then change the line of code in question to this:
If tnull(rsLogin("UserType")) = "user" OR tnull(rsLogin("UserType")) = "cust"
this will change the null to an empty string, and the validation will not blow up.
However, if your page thinks EVERYONE is either a user or a cust, and this one is "" ,empty string., should it still be processed, because the UserType is blank? should you assume all empty string userTypes are "cust" or something?
--help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!