Whats wrong with me code!!!

loo8866

Registered User.
Local time
Today, 07:52
Joined
Jan 11, 2007
Messages
106
Hi guys -

Im currently working on a login screen. I keep getting an error with this line of code:

If Me.Pass.Value = DLookup("Password", "DatabaseUsers", "[Username]=" & Me.User.Value) Then

its saying run time error 3075 -missing operator in query expression!

any ideas?

cheers
 
correct code

"[Username]='" & Me![User] & "'"
 

Users who are viewing this thread

Back
Top Bottom