YenRaven
08-21-2006, 03:39 PM
I just know im makeing a stupid mistake but no matter what i try (reserverd words and such) i have no luck debuging this one line of code:
set Exe = oConn.Execute("INSERT INTO sales_reps SET (username, vpassword, first_name, last_name, address, city, vstate, zip, home_phone, cell_phone, email, location_tag, ses_number) VALUES ('"& username &"', '"& password &"', '"& first_name &"', '"& last_name &"', '"& Address &"', '"& vCity &"', '"& vState &"', '"& Zip &"', '"& HomePhone &"', '"& CellPhone &"', '"& Email &"', '"& LocationTag &"', '"& SESNumber &"')")
the error it returns is a syntax error:
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC Microsoft Access Driver] Syntax error in INSERT INTO statement.
/testindc/sunrise/save_new_rep.asp, line 31
all names were copied and pasted form the originals. if anyone sees my mistake any help would be greatly apprecieated.
set Exe = oConn.Execute("INSERT INTO sales_reps SET (username, vpassword, first_name, last_name, address, city, vstate, zip, home_phone, cell_phone, email, location_tag, ses_number) VALUES ('"& username &"', '"& password &"', '"& first_name &"', '"& last_name &"', '"& Address &"', '"& vCity &"', '"& vState &"', '"& Zip &"', '"& HomePhone &"', '"& CellPhone &"', '"& Email &"', '"& LocationTag &"', '"& SESNumber &"')")
the error it returns is a syntax error:
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC Microsoft Access Driver] Syntax error in INSERT INTO statement.
/testindc/sunrise/save_new_rep.asp, line 31
all names were copied and pasted form the originals. if anyone sees my mistake any help would be greatly apprecieated.