CarlRostron
Registered User.
- Local time
- Today, 16:33
- Joined
- Nov 14, 2011
- Messages
- 88
I am using the following code to insert a record into the tblPayments Table
I am confident that the values are correct in the query see screenshot and the table schema is: PaymentID, InvoiceID, PaymentDate, PaymentAmount, Notes
Please advise where I might be going wrong?
I am confident that the values are correct in the query see screenshot and the table schema is: PaymentID, InvoiceID, PaymentDate, PaymentAmount, Notes
Code:
theQuery = "INSERT INTO tblPayments " _
& "(InvoiceID,PaymentDate,PaymentMethod,PaymentAmount,Notes) VALUES " _
& "(" & theInvoiceID & "," & [PaymentDate] & "," & PaymentMethodType & "," & [PaymentAmount] & "," & [Notes] & ");"
Please advise where I might be going wrong?