Click here to Skip to main content
15,887,340 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am beginner
I can't insert single quotes ( ' ) in my MS ACCESS table with this query what shoud i do.
my query is
"INSERT INTO party_master (id, party_name, party_address)"+
"VAlUES ("+object.id+",'"+ object.party_name+"','"+object.party_address+"')";
Posted
Updated 23-Jul-10 23:11pm
v2

1 solution

You can always insert Comma (,) using this query.
Or do you mean [']? Then just use it twice.
But you better use parameter objects instead.
 
Share this answer
 
Comments
Pritesh Aryan 27-Jul-10 4:26am    
ya but, is there any other solution for insert single quotes( ' ) other than write it twise?

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