Hey all...
I am creating a login page but i keep on getting this error:
Source:Microsoft OLE DB Provider for ODBC Drivers,[Microsoft][ODBC Microsoft Access Driver] Missing semicolon( at end of SQL statement
Now here is the code i have done...
sSQL = "INSERT INTO Users (Username, Password) VALUES ('" & Request("Username" & "','" & Request("Password" & "') Where username <> '" & Request("Username" & "'"
Set oConn = Server.CreateObject("ADODB.Connection"
oConn.Open "DSN=myDatabase"
Set rsValidation = oConn.execute (sSQL)
I do know that SQL needs a ";" at the end of each thing but i have added one where i thought it should go but i end up with the same error.
any help??
Thanks in advance
I am creating a login page but i keep on getting this error:
Source:Microsoft OLE DB Provider for ODBC Drivers,[Microsoft][ODBC Microsoft Access Driver] Missing semicolon( at end of SQL statement
Now here is the code i have done...
sSQL = "INSERT INTO Users (Username, Password) VALUES ('" & Request("Username" & "','" & Request("Password" & "') Where username <> '" & Request("Username" & "'"
Set oConn = Server.CreateObject("ADODB.Connection"
oConn.Open "DSN=myDatabase"
Set rsValidation = oConn.execute (sSQL)
I do know that SQL needs a ";" at the end of each thing but i have added one where i thought it should go but i end up with the same error.
any help??
Thanks in advance