I'm practically starting to use MS Access and simply copied a code from the internet. I think I've checked it thoroughly but still getting syntax error message when the command is ran. Below is the code I have.
CurrentDb.Execute "INSERT INTO tblAql(area, woNo, pn, qtyRec, qtyAcc, qtyRej, source, optr, insp, dmrNo, aqlPct, def1, def2, def3, machine, comment, dateTime, noSmpls, dispo) " & _
"VALUES(" & Me.cboArea & ",'" & Me.txtWO & "','" & Me.txtPN & "','" & Me.intRec & "','" & Me.intAcc & "','" & _
Me.intRej & "','" & Me.cboSource & "','" & Me.txtOptr & "','" & Me.txtInsp & "','" & Me.txtDMR & "','" & Me.cboAqlPct & "','" & _
Me.cboDef1 & "','" & Me.cboDef2 & "','" & Me.cboDef3 & "','" & Me.txtMachine & "','" & Me.txtComment & "','" & nowDate & "','" & Me.cboDispo & "')"
Can anyone help me out?
Thanks.
accessTenderfoot