Quick Question (condition syntax error) (1 Viewer)

pheidlauf

Registered User.
Local time
Today, 11:50
Joined
Jun 5, 2013
Messages
42
Hello. I'm receiving a "Error 3464" data type mismatch error from the code below.

Code:
DoCmd.OpenForm "AllEmployees", , , "[OPERATOR_ID] =" & (Me![SearchResults])

OPERATOR_ID is a text primary key (from the network, not my creation), and SearchResults should be returning a string as well. I don't know where the issue is.

Help please? :) Let me know if any further information is needed.
 

pheidlauf

Registered User.
Local time
Today, 11:50
Joined
Jun 5, 2013
Messages
42
Thanks for the help! It works now. For anyone having the same issue, here is the code that works:
Code:
Private Sub SearchResults_DblClick(Cancel As Integer)

DoCmd.OpenForm "AllEmployees", , , "OPERATOR_ID='" & Me![SearchResults].Value & "'"

End Sub
 

pbaldy

Wino Moderator
Staff member
Local time
Today, 08:50
Joined
Aug 30, 2003
Messages
36,139
Happy to help!
 

Users who are viewing this thread

Top Bottom