Pakai perintah Replace(txt,"'","''")

contoh :

SQL="Insert into TblA (Kode,Nama) Values ('" & replace(txtkode,"'","''") &
"','" & replace(txtNama,"'","''") & "'"

Best Regards,
David J M

Advess
ISV and IT Consultant

Kirim email ke