Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Help with SQL
Hi,
I am trying to execute a SQL statement against an oracle database
the field (customer_name) I am querying on contains records with
embedded single quotes (') for example, Craig's data exchange. When
the query hits one of these records it fails with improperly quoted
string error. The front-end is VB and the connection is made using ODBC
Do While Not .EOF mySql = "SELECT * FROM all_customer_acct WHERE " & _ "customer_name = '" & UCase(!customer_nm) & "'" frmValidator.Text1.Text = UCase(!customer_nm) frmValidator.Refresh outString = UCase(!customer_nm) & "|"
How can I change the Sql Statment so it will not fail in the above situation.
Thanks,
Sundeep
--
![]() |
![]() |