O
owilson
Hi,
I have the following insert statement:
strSQL = "INSERT INTO BillingTable (DivNo, ItemDesc,
Billing Amount, JobNum, YearMonth)" _
& "VALUES (DivNo, ItemDesc, Billing Amount,
JobNum, YearMonth)"
DoCmd.RunSQL strSQL
It works if I take out Billing Amount, but generates
a "Syntax Error" if I include Billing Amount.
Billing Amount is a number, the only one in the statement.
What am I doing wrong?
TIA
Owen
I have the following insert statement:
strSQL = "INSERT INTO BillingTable (DivNo, ItemDesc,
Billing Amount, JobNum, YearMonth)" _
& "VALUES (DivNo, ItemDesc, Billing Amount,
JobNum, YearMonth)"
DoCmd.RunSQL strSQL
It works if I take out Billing Amount, but generates
a "Syntax Error" if I include Billing Amount.
Billing Amount is a number, the only one in the statement.
What am I doing wrong?
TIA
Owen