The following code is producing a "missing semicolon at end of SQL statement" error. I can't seem to figure it out so I am asking for some help and possibly an explanation. Thanks in advance!
Code:
Dim strSQL As String
strSQL = ""
strSQL = strSQL & "INSERT INTO ProductionBatchDetailTable"
strSQL = strSQL & "([BatchID], [ItemUsed], [ItemUsedDescription], [QuantityUsed])"
strSQL = strSQL & "VALUES ('" & BatID & "','" & ItemUsed & "','" & Expr1 & "','" & QtyUsed & "')"
DoCmd.RunSQL strSQL