Hi
I wonder if anyone can help, I have been staring at this for so long. I just can't see where the missing operator is. Username, strUserName and strEmpName are all text fields. I keep getting the error message
Fun-time error '3075'
Syntax error (missing operator) in query expression 'Username =
Can any see the missing operator at all? I am trying to look up the username in the Master table which is added to that table when the user logs on, I then want to check it match the information in the login table and form to make sure login details are not swapped/shared and the correct user access the database.
Hope that makes sense! Any help is appreciated.
thanks
I wonder if anyone can help, I have been staring at this for so long. I just can't see where the missing operator is. Username, strUserName and strEmpName are all text fields. I keep getting the error message
Fun-time error '3075'
Syntax error (missing operator) in query expression 'Username =
Code:
If DLookup("Username", "Master", "Username= " & DLookup("strEmpName", "tblEmployees", "strUserName")) Then
MsgBox "Welcome - Username confirmed."
Can any see the missing operator at all? I am trying to look up the username in the Master table which is added to that table when the user logs on, I then want to check it match the information in the login table and form to make sure login details are not swapped/shared and the correct user access the database.
Hope that makes sense! Any help is appreciated.
thanks