Thank you so much for your replies... but the scenario is this:
suppose i have a variable containing the name:
/* ASSUMING THE USER INPUTS: ALYSONS' STORE*/
/* ACTUALLY INPUTS WILL BE PASSED TO A VARIABLE SO I HAVE NO CONTROL
OF DOUBLING THE QUOTE, I AM ACTUALLY USING
VB 6 AS FRONT END. */
s = "SELECT * FROM tblCompany WHERE COMPNAME = '" & txtCompName & "'"
/* where s is actually:
SELECT * FROM tblCompany WHERE COMPNAME = 'ALYSONS' STORE'
*/
/*so when i call this query:*/
set rs = cn.execute (s)
/* forsure an error will come out*/
I HOPE YOU WILL STILL FIND TIME TO GIVE ME SOME SUGGESTIONS AND IDEAS WITH THIS... THANKS A LOT.