In AC97, I'm trying to add records to a table with information from cbxTask - number, lbxOperator - number, tbxCompletionDate - Date, and chkSupvJobBriefing -y/n that are on frmTaskCompletion using an "On Click" event like the following. I'm sure it isn't close, but I'm lost as far as how to specify text, dates, numbers, etc.
SQL = "INSERT INTO tblTaskLog (TaskID, OperatorID, CompletionDate, SupvJobBriefing) " & _
"VALUES (" & DQ & cbx.Column(0) & DQ & ", " &_
& DQ & lbx.Column(0,itm) & DQ & ", " &_
& DQ & tbx & DQ & ", " &_
& DQ & chk & DQ & ");"
I get various error when I try different versions.
Any suggestions?
Thanks,
Brian
SQL = "INSERT INTO tblTaskLog (TaskID, OperatorID, CompletionDate, SupvJobBriefing) " & _
"VALUES (" & DQ & cbx.Column(0) & DQ & ", " &_
& DQ & lbx.Column(0,itm) & DQ & ", " &_
& DQ & tbx & DQ & ", " &_
& DQ & chk & DQ & ");"
I get various error when I try different versions.
Any suggestions?
Thanks,
Brian