simple slookup error

swarv

Registered User.
Local time
Today, 16:22
Joined
Dec 2, 2008
Messages
196
All,

can somebody just glance an eye over the below and just state what the error is?
Code:
If Me.txtpassword.Value = DLookup("passwords", "tbl_users", "[tbl_users.user_id]=" & cboEmployee.Value) Then


Thanks

Martin
 
If the [tbl_users.user_id] is text then:
Code:
If Me.txtpassword = DLookup("passwords", "tbl_users", "[tbl_users.user_id]='" & cboEmployee & "'") Then
 
you might need extra spaces around the last = sign
 

Users who are viewing this thread

Back
Top Bottom