Quadcrazi
New member
- Local time
- Today, 11:09
- Joined
- Jan 22, 2025
- Messages
- 11
Hello
I am currently working on Invoicing in my db. When I click the button to insert my 'Item' into the 'InvoicedItemsSub' I get a Syntax Error in INSERT INTO Statement. I copied this from another db I have that works fine and just changed the information accordingly. I'm pretty new at this and can't see what the problem is. Can anyone help? Thanks in advance.
I am currently working on Invoicing in my db. When I click the button to insert my 'Item' into the 'InvoicedItemsSub' I get a Syntax Error in INSERT INTO Statement. I copied this from another db I have that works fine and just changed the information accordingly. I'm pretty new at this and can't see what the problem is. Can anyone help? Thanks in advance.
SQL:
docmd.runsql "Insert INTO tbl_InvoiceItems" & _
"(InvID,ItmID,ItmSID,ItmSaleBalance,InvItmQty,InvItmPrice) VALUES " & _
"(" & me.Parent!InvID & "," & me.ItmID & "," & me.ItmSID & "," & saleInv & "," & saleInv & "," & me.ItmSAmount & ");"