Could someone kindly advise me on a syntax problem using a VBA strSQL statement
My Code is
The values are variables collected and I can see that they have been populated. However, when I run the SQL I am getting an access box asking me for each of the values in turn. The SQL is obviously trying but is not accept the Values. I suspect syntax and am not very skilled on VBA/SQL syntax requirements I am afraid,
Thanks in advance
My Code is
Code:
StrSQL = "INSERT INTO tblInvoices (BRef, Cost, Paid, PaymentDate) VALUES ( gID , gTotal, gPaid, gPaydate )"
The values are variables collected and I can see that they have been populated. However, when I run the SQL I am getting an access box asking me for each of the values in turn. The SQL is obviously trying but is not accept the Values. I suspect syntax and am not very skilled on VBA/SQL syntax requirements I am afraid,
Thanks in advance