B
belange
I have this line of code : string insert = @"INSERT INTO Reservation
(StudentName, Day, Hour, Station) Values('julien', '8 july 20004', '12.00
pm', 'station 1')";
but when I run the web form, I have this error
Exception Details: System.Data.OleDb.OleDbException: Syntax error in INSERT
INTO statement.
Source Error:
Line 106: commandReserv = new OleDbCommand(insert,connectReserv);
Line 107: connectReserv.Open();
Line 108: commandReserv.ExecuteNonQuery();
Line 109: connectReserv.Close();
Line 110: connectReserv.Dispose();
Can you help me because I do not find the mistake, Thanks for your help.
(StudentName, Day, Hour, Station) Values('julien', '8 july 20004', '12.00
pm', 'station 1')";
but when I run the web form, I have this error
Exception Details: System.Data.OleDb.OleDbException: Syntax error in INSERT
INTO statement.
Source Error:
Line 106: commandReserv = new OleDbCommand(insert,connectReserv);
Line 107: connectReserv.Open();
Line 108: commandReserv.ExecuteNonQuery();
Line 109: connectReserv.Close();
Line 110: connectReserv.Dispose();
Can you help me because I do not find the mistake, Thanks for your help.