|
William Lee -> RE: Help... (10/8/2007 23:52:28)
|
quote:
ORIGINAL: sssngt83 Sub InsertPurchaseDetails SQLInsert = "insert into tblPurchase (cname,cperson,address,country,postalcode,tel,faxno,email,description) " &_ " values (" &_ "'"& ConvertS(companyname) &"'," &_ "'"& ConvertS(contactperson) &"'," &_ "'"& ConvertS(address) &"'," &_ "'"& ConvertS(country) &"'," &_ "'"& ConvertS(postalcode) &"'," &_ "'"& ConvertS(contactno) &"'," &_ "'"& ConvertS(faxno) &"'," &_ "'"& ConvertS(email) &"'," &_ "'"& ConvertS(enquiry) &"'" &_ " )" Conn.Execute SQLInsert End Sub %> Any ideas ?? Thx.... Another way is to remove the ConvertS altogether and test your script, like this: SQLInsert = "insert into tblPurchase (cname,cperson,address,country,postalcode,tel,faxno,email,description) " &_ " values (" &_ "'"& (companyname) &"'," &_ "'"& (contactperson) &"'," &_ "'"& (address) &"'," &_ "'"& (country) &"'," &_ "'"& (postalcode) &"'," &_ "'"& (contactno) &"'," &_ "'"& (faxno) &"'," &_ "'"& (email) &"'," &_ "'"& (enquiry) &"'" &_ " )" You will probably meet with another error, but that will help you to know better.
|
|
|
|