amruthanet
asked on
Urgent -Using Escape characters in my query- Please help
I am trying to use the escape characters in my query and I am getting the syntax error as
Incorrect syntax near 'Ifft & Co., P.A.'.
Please help.
strSQLQuery = "SELECT id,firm,residentmanager,ad
ASKER
Below are the examples for the querystring(sFirm)
Ifft & Co., P.A.
Schmidt & Eudaley CPA's, P.A.
Schulteis and Walsh, P.A.
So should I need to remove the single quote?
Thanks,
Ifft & Co., P.A.
Schmidt & Eudaley CPA's, P.A.
Schulteis and Walsh, P.A.
So should I need to remove the single quote?
Thanks,
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks a bunch. It worked as a charm.
ESCAPE '\')'" & sFirm & "'"
That will put something like: ESCAPE '\')'sFirmContents'
What is an example of what can be in sFirm?