By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,982 Members | 1,932 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,982 IT Pros & Developers. It's quick & easy.

Finding record using data control

P: 30
Hi,


Am using Data1.Recordset.FindFirst "Odd_Company_Name='" & sstr & "'" to find a company name in my database.

but when we enter a company name with ' then its giving error.
Ex: Oracle - no error finding this company

ex: Oracle's db - operator error.

Please help.
Jan 8 '08 #1
Share this Question
Share on Google+
1 Reply


debasisdas
Expert 5K+
P: 8,127
You need to restrict the use of single quote or chr(39) for any kind of database operation.
Jan 8 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.