K
Ken
I'm using the following VBA code to lookup a name in a
dynaset:
rec.FindFirst "Name = '" & Me.PatientName & "'"
Normally, it works fine. However, as expected, if the
patientname value includes one or more single quotation
marks, e.g., John D'Agostino, I receive a syntax error.
Any suggestions? Thanks.
Ken
dynaset:
rec.FindFirst "Name = '" & Me.PatientName & "'"
Normally, it works fine. However, as expected, if the
patientname value includes one or more single quotation
marks, e.g., John D'Agostino, I receive a syntax error.
Any suggestions? Thanks.
Ken