In Access 97, I added the ... & "#" tbx3.Value & "#," _ ... to the list in the following INSERT INTO statement and now I get a syntax error. Can anyone find it?
Thanks, Brian
Code:
SQL = "INSERT INTO tblSchedule (ScheduleDate,TimeStamp,TrainNo,TrainPart,DateTypeID,DateID) " & _
"VALUES(#" & tbx1.Value & "#," _
& "#" tbx3.Value & "#," _
& DQ & lbx1.Column(0) & DQ & "," _
& DQ & lbx2.Column(0, itm) & DQ & "," _
& DQ & cbx1.Column(0) & DQ & "," _
& DQ & cbx2.Column(0) & DQ & ");"