I've been working on the following sql statement. All the variables are currency besides txtDate (a date) and OrderCount which is an integer.
DoCmd.RunSQL ("INSERT INTO tblBalance (StartDate,CashSales,CCSales,WireSales,CheckSales, BillToSales,CashBalance_Calc,CCBalance_Calc, " & _
"WireBalance_Calc , CheckBalance_Calc, BillToBalance_Calc, CashBalance_Beg, CheckBalance_Beg, CCBalance_Beg, " & _
"WireBalance_Beg , BillToBalance_Beg, CashRefund, CCRefund, CashBalance_Count, " & _
"CCBalance_Count , WireBalance_Count, CheckBalance_Count, BillToBalance_Count, CashOut, CCOut, WireOut, CheckOut, BillToOut, CashBalance_End, " & _
"CashCheck_End , CCBalance_End, WireBalance_End, BillToBalance_End, OrderCount, PTAcheck, PTAcash, PTACC ) " & _
"VALUES (#" & txtDate & "#," & txtCashSales & "," & txtCCSales & "," & txtWireSales & "," & txtCheckSales & "," & txtBillToSales & "," & txtCashBalance_Calc & "," & _
"txtCCBalance_Calc, txtWireBalance_Calc, txtCheckBalance_Calc, txtBillToBalance_Calc, txtCashBalance_Beg, " & _
"txtCheckBalance_Beg, txtCCBalance_Beg, txtWireBalance_Beg, txtBillToBalance_Beg, txtCashRefund, txtCCRefund, " & _
"txtCashBalance_Count, txtCCBalance_Count, " & _
"txtWireBalance_Count, txtCheckBalance_Count, txtBillToBalance_Count, txtCashout, " & _
"txtCCOut, txtWireOut, txtCheckOut, txtBillToOut, txtCashBalance_End, txtCashCheck_End, " & _
"txtCCBalance_End, txtWireBalance_End, txtBillToBalance_End, txtOrderCnt, txtPTACheck, txtPTACash, " & _
"txtPTACC)")
When I try to continue with the & variable & on the next lines I get errors. Could someone help me with its completion?
Thank you, I am new to this.
Josheir