alfiajamel
Programmer
I cannot figure out what is wrong with this code. Please help!!
CurrentDb.Execute "INSERT INTO tblEntry (CreditorID, CategoryID, DueDate, BillDesc, BillAmount, BillNotes, PaymentAmount, PaymentDate, PaymentMethod, CheckNumber, PaymentNotes, TotalDue) " & _
"VALUES (" & cboCreditors.Column(0) & ", " & _
cboCategory.Column(0) & ", " & _
Format(txtDueDate, "\#yyyy\-mm\-dd\#") & ", " & _
Chr$(34) & txtBillDesc & Chr$(34) & ", " & _
txtBillAmount & ", " & _
Chr$(34) & txtBillNotes & Chr$(34) & ", " & _
txtPaymentAmount & ", " & _
Format(txtPaymentDate, "\#yyyy\-mm\-dd\#") & ", " & _
cboPaymentMethod.Column(0) & ", " & _
txtCheckNumber & ", " & _
Chr$(34) & txtPaymentNotes & Chr$(34) & ", " & _
txtTotalDue & ")
CurrentDb.Execute "INSERT INTO tblEntry (CreditorID, CategoryID, DueDate, BillDesc, BillAmount, BillNotes, PaymentAmount, PaymentDate, PaymentMethod, CheckNumber, PaymentNotes, TotalDue) " & _
"VALUES (" & cboCreditors.Column(0) & ", " & _
cboCategory.Column(0) & ", " & _
Format(txtDueDate, "\#yyyy\-mm\-dd\#") & ", " & _
Chr$(34) & txtBillDesc & Chr$(34) & ", " & _
txtBillAmount & ", " & _
Chr$(34) & txtBillNotes & Chr$(34) & ", " & _
txtPaymentAmount & ", " & _
Format(txtPaymentDate, "\#yyyy\-mm\-dd\#") & ", " & _
cboPaymentMethod.Column(0) & ", " & _
txtCheckNumber & ", " & _
Chr$(34) & txtPaymentNotes & Chr$(34) & ", " & _
txtTotalDue & ")