DLookup error

Q

quixote

I am getting the following error:

Run-time error '64479':
The expression you entered as a query parameter produced
this error: 'The object doesn't contain the Automation
object 'TEST."

For the following function:

If Me.txtPassword = DLookup
("[Password]", "tblUsers", "[UserID]=" & Me.cboUserID) Then

strCommercialID = Me.cboCommercialID

All fields are text. I think I am missing single quotes
somewhere but can't quite figure out where and how.

Thanks
 
K

Ken Snell

If the combo box contains text, then use this (delimit its value with '
character):

If Me.txtPassword = DLookup
("[Password]", "tblUsers", "[UserID]='" & Me.cboUserID & "'") Then
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

DAO 3.6 to 3.51 new error.. 2
Error 2471 11
Help with DLookup 4
dlookup 2
Access Can't Get Dlookup To Work 1
DLookup not recognizing variable 3
String and Dlookup 3
DLookup Error 3

Top