D
DS
I keep getting a Syntax Error on this code, any help appreciated.
Thanks
DS
MONEYSQL = "INSERT INTO SalesDetailsMoney " & _
"SalesDetailsMoney.SalesID, SalesDetailsMoney.LineID, " & _
"SalesDetailsMoney.ItemID, SalesDetailsMoney.QtyPrice,
SalesDetailsMoney.GroupID, " & _
"SELECT SalesDetails.SalesID, SalesDetails.LineID, SalesDetails.ItemID,
" & _
"SalesDetails.Quantity, SalesDetails.GroupID " & _
"FROM SalesDetails " & _
"WHERE SalesDetails.SalesID = Forms!MoveItem!TxtLeftID;"
DoCmd.RunSQL (MONEYSQL)
Thanks
DS
MONEYSQL = "INSERT INTO SalesDetailsMoney " & _
"SalesDetailsMoney.SalesID, SalesDetailsMoney.LineID, " & _
"SalesDetailsMoney.ItemID, SalesDetailsMoney.QtyPrice,
SalesDetailsMoney.GroupID, " & _
"SELECT SalesDetails.SalesID, SalesDetails.LineID, SalesDetails.ItemID,
" & _
"SalesDetails.Quantity, SalesDetails.GroupID " & _
"FROM SalesDetails " & _
"WHERE SalesDetails.SalesID = Forms!MoveItem!TxtLeftID;"
DoCmd.RunSQL (MONEYSQL)