Click here to Skip to main content
15,889,849 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi i am using Data object in VB6 with ms access
error massage : run-time error 3075
code :
Set db = OpenDatabase(App.Path & "\db.mdb")

Dim snrs As Recordset
Set snrs = db.OpenRecordset("select * from [entry] where [NAME]= '" & Me.txtname.Text & "'")

"select * from [entry] where [NAME]= '" & Me.txtname.Text & "'"

now its working fine when no Single cote on Me.txtname.Text

for example if the name is a.b or a.c cba what ever except like ab's or bc's actually the quarry is becoming like

"select * from [entry] where [NAME]= '" & bc's & "'"

"select * from [entry] where [NAME]= 'bc's'" : now this is causing an error

is their any solution for this please suggest me alternatives
Posted

1 solution

 
Share this answer
 
Comments
Sandeep Mewara 5-Jun-12 11:16am    
Nice link. 5!
VJ Reddy 5-Jun-12 20:01pm    
Good reference. 5!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900