|
prasmile2002 -> 80040e14' (2/28/2005 17:25:20)
|
Hi I am using a Form that will take input from users. The query to ad the values to the database is like this: sSQL = "INSERT into [users_tbl] ([name1], [lname], [mname], [addr], [cit], [sta], [zip], [phone], [phone2], [email], [selectday], [selectmon], [selectyear], [dateapp], [pos], [IP], [res]) values ('" & _ name1 & "', '" & lname & "', '" & mname & "', '" & addr & "', '" & cit& "', '" & sta & "', '" & zip & "', '" & phone & "', '" & phone2 & "','" & email & "', '" & selectday & "', '" & selectmon & "', '" & selectyear & "', '"&Now()&"', '"&pos&"' , '"&IP&"', '" & res & "')" The res field is a memo field/data type.. When I insert values ..everything works finme..But if the values contain apostrophe (' ) eg: I tried to enter ghfsghdfasghd' "hsdgahs" . and it gave me this error Microsoft JET Database Engine error '80040e14' Syntax error (missing operator) in query expression ''ghfsghdfasghd' "hsdgahs" . ')'. Please help... Thanks Singh
|
|
|
|