Italian Caratteri Riservati nelle quary

Indicativamente devo fare una cosa così
Code: Copy
dim str as string
MyQuery="SELECT * FROM tblPatients WHERE Last_name LIKE ?"
str = "'%" & edittext.txt & "%'"
Cursor1=SQL1.ExecQuery2(MyQuery,ArrayAsString(str))

se edittext.txt contiene un carattere riservato, un apice un percento ecc, funziona?
 
Avevo provato ma non funzionava ma forse l'errore è mio, l'apice nel % non serve?
Code: Copy
str = "'%" & edittext.txt & "%'"
 
Back
Top