Abdulassees
New Member
Hi Team,
I am looking for a particular issue.
I am using below sql code for pulling the data. All looks good however the field name which has single apostrophe is making problem. Please find the code below. Please help me.
strSQL = "Select [Firm],[ID],[Name],[Last Approval Date] FROM [" & strOpps & "$]" & _
"WHERE [Firm] IN ('INDIA','PAKISTAN','CAMEROON','CONGO','COTE D' IVORY','ZIMBABWE')"
I have a problem with Cote D' Ivory due to the apostrophe. May I know any solution for the same.
Regards,
Abdul
I am looking for a particular issue.
I am using below sql code for pulling the data. All looks good however the field name which has single apostrophe is making problem. Please find the code below. Please help me.
strSQL = "Select [Firm],[ID],[Name],[Last Approval Date] FROM [" & strOpps & "$]" & _
"WHERE [Firm] IN ('INDIA','PAKISTAN','CAMEROON','CONGO','COTE D' IVORY','ZIMBABWE')"
I have a problem with Cote D' Ivory due to the apostrophe. May I know any solution for the same.
Regards,
Abdul