Hi, I was wondering if someone could help me. I don't understand why this sql statement works:
QueryCalendar = "INSERT INTO Calendar VALUES('" & CalendarTitle & "','" & CalendarDate & "','" & CalendarTime & "','" & CalendarBody & "','" & CalendarLocation & "')"
Where as this sql statement gives the error:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
[Microsoft][ODBC Microsoft Access Driver] Syntax error in INSERT INTO statement.
"INSERT INTO Calendar(Title, Date, Time, Body, Location) VALUES('" & CalendarTitle & "','" & CalendarDate & "','" & CalendarTime & "','" & CalendarBody & "','" & CalendarLocation & "')"
The Field names are identical to those in the Calendar table??
Cheers
QueryCalendar = "INSERT INTO Calendar VALUES('" & CalendarTitle & "','" & CalendarDate & "','" & CalendarTime & "','" & CalendarBody & "','" & CalendarLocation & "')"
Where as this sql statement gives the error:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
[Microsoft][ODBC Microsoft Access Driver] Syntax error in INSERT INTO statement.
"INSERT INTO Calendar(Title, Date, Time, Body, Location) VALUES('" & CalendarTitle & "','" & CalendarDate & "','" & CalendarTime & "','" & CalendarBody & "','" & CalendarLocation & "')"
The Field names are identical to those in the Calendar table??
Cheers