i get that error when i try and run through my code.
Can any one please tell me what is wrong with my insert statement.
It looks correct.
OleDbConnection connect = new OleDbConnection();
connect = new DBconnect().DbConn("");
string insertStatement = "INSERT INTO Restrict "
+ "([Company ID], [User Type], [Company]) "
+ "VALUES (?,?,?)";
OleDbCommand insertCommand = new OleDbCommand(insertStatement, connect);
insertCommand.Parameters.Add("[Company ID]", OleDbType.Char).Value = textBox3.Text;
insertCommand.Parameters.Add("[User Type]", OleDbType.Char).Value = comboBox16.Text;
insertCommand.Parameters.Add("[Company]", OleDbType.Char).Value = comboBox9.Text;
connect.Open();
int count = insertCommand.ExecuteNonQuery();
connect.Close();