Thanks so much-I'm looking at the AROBS table and I can see one payment that has been made but there are multiple payments due on the Invoice, where can I see the future payment schedules?
Private Sub cmdRecalc_Click()
Dim iLine As Integer
Dim nBalance As Double
Dim nThisAmount As Double
Dim ArPayments As AccpacView
Dim ArInvoices As AccpacView
Dim ArTermDetails As AccpacView
With a4wLink
.OpenView "AR0037", ArPayments
.OpenView "AR0036", ArInvoices
End With
With a4wLinkRead
.OpenView "AR0017", ArTermDetails
End With
' Make sure terms code selected
If Me.fldTerms.Value = "" Then
MsgBox "Please select a terms code", , Me.Caption
Exit Sub
End If
With frmStart
' Delete the existing payments
ArPayments.Cancel
ArPayments.Browse "IDCUST = """ & .fldCustomer & """ AND IDINVC = """ & .fldInvoice & """ AND SWPAID = 0", True
Do While ArPayments.Fetch
ArPayments.Delete
Loop
Thanks! We will give this a shot- I feel guilty getting all this great advice from you guys and not being able to contribute anything. Is there something I can do to show my gratitude?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.