Warning - novice user here....working with an inherited database. I'm trying to add a field so that the query appends one more field than previously. I copy and pasted from the old code and just changed the names but it's not working. Would love some help![]()
This is the old code that works:
DoCmd.RunSQL "INSERT INTO tblPartialPay ( PaymentDueDate, AmntDue, FullPaid, LoanID)" & _
"SELECT #" & AmntDate & "# AS Expr1, " & _
Amnt2Ellis & " AS Expr2, " & _
AmntFull & " AS Expr3, " & _
PropID & " AS Expr5"
This is my new code that gets the error.
DoCmd.RunSQL "INSERT INTO tblPartialPay ( PaymentDueDate, AmntDue, FullPaid, LoanID, BuyerType)" & _
"SELECT #" & AmntDate & "# AS Expr1, " & _
Amnt2Ellis & " AS Expr2, " & _
AmntFull & " AS Expr3, " & _
PropID & " AS Expr5" " & _
BuyerType & " AS Expr6"