Ok so I have a button on a forum that should append the data from this form to a table. The query works perfectly, but I'm getting an error.
Obviously from the title I'm getting "Too few parameters. Expected 1"
Any ideas on what I'm missing?
Dim strSql As String
strSql = "INSERT INTO InvWorkOrderT ( ProductID, Quantity ) " & _
"SELECT WorkOrderDetailT.ProductID, WorkOrderDetailT.Quantity " & _
"FROM WorkOrderT INNER JOIN WorkOrderDetailT ON WorkOrderT.WorkOrderID = WorkOrderDetailT.WorkOrderID " & _
"WHERE (((WorkOrderT.WorkOrderID) = [Forms]![WorkOrderF]![WorkOrderID])) " & _
"GROUP BY WorkOrderDetailT.ProductID, WorkOrderDetailT.Quantity; "
CurrentDb.Execute strSql, dbFailOnError
Obviously from the title I'm getting "Too few parameters. Expected 1"
Any ideas on what I'm missing?