P
pkeegs
I have been trying to make sense of some of the previous answers in the forum
without success, so here is my problem.
My database has a client form from which I can select another form for
additional information if required. When I click on the button to select the
additional information for a person with an apostrophe in the name I get the
following message.
Syntax error (missing operator) in query expression '[Full Name]='John
O'Neill''.
The system generated code is
stLinkCriteria = "[Full Name]=" & "'" & Me![ParameterFullName] & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria
What do I have to do to get the code working with names containing an
apostrophe?
Cheers
without success, so here is my problem.
My database has a client form from which I can select another form for
additional information if required. When I click on the button to select the
additional information for a person with an apostrophe in the name I get the
following message.
Syntax error (missing operator) in query expression '[Full Name]='John
O'Neill''.
The system generated code is
stLinkCriteria = "[Full Name]=" & "'" & Me![ParameterFullName] & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria
What do I have to do to get the code working with names containing an
apostrophe?
Cheers