Question : dlookup error in access

Hi,

Can someone tell me why I am getting a type mismatch error in this string?

If Me.Text18.Value = DLookup("Password", "Users", "[Username]= '" & Me.Combo14.Value & "'") Then

        Username = Me.Combo14.Value

Answer : dlookup error in access

test this

i renamed your Public variable  UserName to pUserName
you should use names of variable to be unique in your application.
Random Solutions  
 
programming4us programming4us