xWastedMindx
Technical User
I have a signup asp form. I have another connection asp page with an SQL query and INSERT INTO statement to try to put the form data into a database. I believe I have everything correct, but I keep getting this error below:
Is there something missing?? Or the syntax wrong?
Thanks in advance. Code is below the error...
NOTE: The SQLstring and the VALUES are one long line, might have to copy/paste into a text tile to see it correctly.
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC Microsoft Access Driver] Syntax error in INSERT INTO statement.
============ code ========
<%
Set Con = Server.CreateObject( "ADODB.Connection" )
Con.Open "accessDSN"
sqlString = "INSERT INTO CustomerInfo( customerUserName, customerPassword, verifyPassword, customerEmail, customerFirstName, customerLastName, customerState, customerCity, customerAge, customerZip, customerGender, customerDOB, customerOffers )" &_
"values ( '" & username & "', '" & password & "', '" & customerPassword2 & "', '" & emailaddy & "', '" & FirstName & "', '" & LastName & "', '" & State & "', '" & City & "', " & Age & ", " & zip & ", '" & Gender & "', " & customerDOB & ", '" & customerOffers & "' )"
Con.Execute sqlString
Con.Close
%>
It's time to kick ass and chew bubblegum, but I'm all out of gum --Duke Nukem
Is there something missing?? Or the syntax wrong?
Thanks in advance. Code is below the error...
NOTE: The SQLstring and the VALUES are one long line, might have to copy/paste into a text tile to see it correctly.
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC Microsoft Access Driver] Syntax error in INSERT INTO statement.
============ code ========
<%
Set Con = Server.CreateObject( "ADODB.Connection" )
Con.Open "accessDSN"
sqlString = "INSERT INTO CustomerInfo( customerUserName, customerPassword, verifyPassword, customerEmail, customerFirstName, customerLastName, customerState, customerCity, customerAge, customerZip, customerGender, customerDOB, customerOffers )" &_
"values ( '" & username & "', '" & password & "', '" & customerPassword2 & "', '" & emailaddy & "', '" & FirstName & "', '" & LastName & "', '" & State & "', '" & City & "', " & Age & ", " & zip & ", '" & Gender & "', " & customerDOB & ", '" & customerOffers & "' )"
Con.Execute sqlString
Con.Close
%>
It's time to kick ass and chew bubblegum, but I'm all out of gum --Duke Nukem