D
Dave Elliott
In my Database I have a Orders table and a Customers table and a query that
combines them both called Order Information.
In the query grid I have the code below and it works fine showing on the
form and on the report if the customer is late and the Per-Centage due.
My question is this, How do I track the graduated payments since I only have
one bound control for the result and that is Order Date.
If the customer is late with there Payment Terms on the customer form set at
Due on Receipt and they are say 30 days late, how do I add this per centage
automatically to the Invoice. Also say if they are 60 days late and the per
centage increases ?
I can put in on the Report to add the per centage amount to the gross total,
but what if they are 60 days late, what then ?
I dont know how to make it just not add the 30 day amount or the 60 days
amount and not both ! 90 days as well.
Customers and Orders Tables. Order Date.
What can I do to fix this ?
Thanks,
Dave
Days Past Due: DateDiff("d",Now(),[Order Date])
0-30: IIf([Days Past Due]<-31,CCur([Order Amount]*0.02),0)
0-60: IIf([Days Past Due]<-61,CCur([Order Amount]*0.03),0)
0-90: IIf([Days Past Due]<-91,CCur([Order Amount]*0.04),0)
combines them both called Order Information.
In the query grid I have the code below and it works fine showing on the
form and on the report if the customer is late and the Per-Centage due.
My question is this, How do I track the graduated payments since I only have
one bound control for the result and that is Order Date.
If the customer is late with there Payment Terms on the customer form set at
Due on Receipt and they are say 30 days late, how do I add this per centage
automatically to the Invoice. Also say if they are 60 days late and the per
centage increases ?
I can put in on the Report to add the per centage amount to the gross total,
but what if they are 60 days late, what then ?
I dont know how to make it just not add the 30 day amount or the 60 days
amount and not both ! 90 days as well.
Customers and Orders Tables. Order Date.
What can I do to fix this ?
Thanks,
Dave
Days Past Due: DateDiff("d",Now(),[Order Date])
0-30: IIf([Days Past Due]<-31,CCur([Order Amount]*0.02),0)
0-60: IIf([Days Past Due]<-61,CCur([Order Amount]*0.03),0)
0-90: IIf([Days Past Due]<-91,CCur([Order Amount]*0.04),0)