Hello,
I am trying to develop a report (Summary of Account) that reports outstanding balances and calculates a late fee on balances greater than 30 days past due. No problem there - the problem is that it also calculates late fees (negative) on balances that are less than 30 days past due. I am using the following statements in my query:
DaysAged: DateDiff("d",([DueDate]),Format(Now (),"Short Date")
Age0to30: [DaysAged] Between 0 And 30
0-30: IIf([DaysAged]<30,"Current"
Age31to60: [DaysAged] Between 31 And 60
Age61to90: [DaysAged] Between 61 And 90
AgeG_T_91: [DaysAged]>=91
31-60: IIf([DaysAged] Between 31 And 60,"31-60"
61-90: IIf([DaysAged] Between 61 And 90,"61-90"
Over 90: IIf([DaysAged]>90,"Over 90"
fee: ([ttl1]*[dayslate])
BalDue: Sum([charge]-[payment]-[retainer])
Age: DateDiff("d",[duedate],Now())
DaysLate: ([age])/15
Ttl1: ([baldue])*0.03
TtlBal: [baldue]+[ttl1]
The forums have been very helpful in my getting this far along in this project (some of the above code may look familiar ). Your assistance, time and input are greatly appreciated.
Kindest regards,
Kevin
I am trying to develop a report (Summary of Account) that reports outstanding balances and calculates a late fee on balances greater than 30 days past due. No problem there - the problem is that it also calculates late fees (negative) on balances that are less than 30 days past due. I am using the following statements in my query:
DaysAged: DateDiff("d",([DueDate]),Format(Now (),"Short Date")
Age0to30: [DaysAged] Between 0 And 30
0-30: IIf([DaysAged]<30,"Current"
Age31to60: [DaysAged] Between 31 And 60
Age61to90: [DaysAged] Between 61 And 90
AgeG_T_91: [DaysAged]>=91
31-60: IIf([DaysAged] Between 31 And 60,"31-60"
61-90: IIf([DaysAged] Between 61 And 90,"61-90"
Over 90: IIf([DaysAged]>90,"Over 90"
fee: ([ttl1]*[dayslate])
BalDue: Sum([charge]-[payment]-[retainer])
Age: DateDiff("d",[duedate],Now())
DaysLate: ([age])/15
Ttl1: ([baldue])*0.03
TtlBal: [baldue]+[ttl1]
The forums have been very helpful in my getting this far along in this project (some of the above code may look familiar ). Your assistance, time and input are greatly appreciated.
Kindest regards,
Kevin