I want to insert into the table OrdersPaid those records from the table orders, where the field paid is set to true
but i get the message too few parameters. can you help ?
Dim StrSQL As String
StrSQL = "INSERT INTO OrdersPaid (OrderID, paid) " & _
"SELECT orderid,paid FROM orders " & _
"WHERE orderspaid.orderid = orders.orderid and orders.paid = true "
CurrentDb.Execute StrSQL
but i get the message too few parameters. can you help ?
Dim StrSQL As String
StrSQL = "INSERT INTO OrdersPaid (OrderID, paid) " & _
"SELECT orderid,paid FROM orders " & _
"WHERE orderspaid.orderid = orders.orderid and orders.paid = true "
CurrentDb.Execute StrSQL