D
DS
My SQL code keeps stopping it says that it wants a semi-colon at the
end. I tried but I can't seem to find where it wants it!
Could it be the [UsageDate] = Date(). I need the usage date to equal
the current date.
CurrentDb.Execute ("INSERT INTO PayApplied
(SalesID,PaymentNameID,PaymentAmount,DocID) " & _
"Values(" & Forms!CheckPayment!SalesID & ",9," &
Forms!DepositPad!TxtDepositAmount & "," & Forms!DepositPad!TxtDepositID
& ") " & _
"UPDATE Deposits SET [Applied]=True AND [UsageDate]=Date() " & _
"WHERE Deposits.[DepositID] = Forms!DepositPad![TxtDepositID]")
Any help, I appreciate.
Thanks
DS
end. I tried but I can't seem to find where it wants it!
Could it be the [UsageDate] = Date(). I need the usage date to equal
the current date.
CurrentDb.Execute ("INSERT INTO PayApplied
(SalesID,PaymentNameID,PaymentAmount,DocID) " & _
"Values(" & Forms!CheckPayment!SalesID & ",9," &
Forms!DepositPad!TxtDepositAmount & "," & Forms!DepositPad!TxtDepositID
& ") " & _
"UPDATE Deposits SET [Applied]=True AND [UsageDate]=Date() " & _
"WHERE Deposits.[DepositID] = Forms!DepositPad![TxtDepositID]")
Any help, I appreciate.
Thanks
DS