G
Guest
Hi,
I can't see what is wrong with this statement. I have verfied the table and field names are correct and still have no idea. I am using the following code.
Dim sSQLInsert As String = ("INSERT INTO Members (Member_ID,Password) Values(") & "'" & txtUserName.Value.ToString & "'" & "," & "'" & txtPassword.Value.ToString & "'" & ");"
m_oOleDbCmd.CommandText = ""
m_oOleDbCmd.CommandText = sSQLInsert
m_oOleDbCmd.ExecuteNonQuery
SQL Insert Statement:
"INSERT INTO Members (Member_ID,Password) Values('chrisg','rckrll');"
I compared this to other Insert statements I have that work and don't see anything wrong with it but yet I am getting a syntax error on the Insert statement.
The data types of the fields are Text in an Access .mdb.
Thanks,
Chris
I can't see what is wrong with this statement. I have verfied the table and field names are correct and still have no idea. I am using the following code.
Dim sSQLInsert As String = ("INSERT INTO Members (Member_ID,Password) Values(") & "'" & txtUserName.Value.ToString & "'" & "," & "'" & txtPassword.Value.ToString & "'" & ");"
m_oOleDbCmd.CommandText = ""
m_oOleDbCmd.CommandText = sSQLInsert
m_oOleDbCmd.ExecuteNonQuery
SQL Insert Statement:
"INSERT INTO Members (Member_ID,Password) Values('chrisg','rckrll');"
I compared this to other Insert statements I have that work and don't see anything wrong with it but yet I am getting a syntax error on the Insert statement.
The data types of the fields are Text in an Access .mdb.
Thanks,
Chris