G
Guest
I allow a user to insert a Client Name in one form (Entry), and when matched
in a drop-down list (Last Name), pressing a command button retrieves and
displays a pop-up form with details of that client.
The match code in the Event Procedure contains the following:
Dim stLinkCriteria As String
stLinkCriteria = "[Last Name]=" & "'" & Me![Combo64] & "'"
This works fine except when the Client name has an apostrophe (O'Doherty)
The system halts with a message:
Syntax Error (missing operator) in query expression '[Last Name]='O'Doherty.
How do I overcome this?
in a drop-down list (Last Name), pressing a command button retrieves and
displays a pop-up form with details of that client.
The match code in the Event Procedure contains the following:
Dim stLinkCriteria As String
stLinkCriteria = "[Last Name]=" & "'" & Me![Combo64] & "'"
This works fine except when the Client name has an apostrophe (O'Doherty)
The system halts with a message:
Syntax Error (missing operator) in query expression '[Last Name]='O'Doherty.
How do I overcome this?