Using VB.NET with ASP.NET and and ms-access 2003 data, I\'m trying to input data from a web form to the a table in db.mdb called \'USER\'.
I tried this code:
User
and Password
are reserved keywords. Change the names, or use square brackets around the names in the query:
Dim cmd As OleDbCommand = New OleDbCommand("INSERT INTO [USER] (Name, Surname, Username, Country, TelNo, [Password], Address) VALUES (?, ?, ?, ?, ?, ?, ?)", conn)
Then, for then next error that you will encounter: As the parameters are not named in the query, the parameter objects in the Parameters
collection has to be added in the same order as they are used in the query.