Hi Forum,
I have Function that calculates Late Fees where a payment isn't rec'd on a given Date (Loops every 14 days)
This works fine but sometimes we want to ignore a Date as the funds were rec'd soon after that date and the delay was not the fault of the Lendee.
I have setup a Form that displays the data and has a button to add a selected date to a Table with fields LoanID and IgnoreDate.
This works fine.
I then made a Public Function to return either the date or 1st Jan 1995 as the Variable SkipThisDate in the Loop of the Late Fee Calculate Code.
Extract of code is here.
The problem is that while the TblLateFeeIgnore has the correct records and dates match the code only ignores some of the dates and not all of them.
Is there some better way to compare dates then what I use above
Not sure where the problem is
and would appreciate some advice or suggestions.
Thanks
I have Function that calculates Late Fees where a payment isn't rec'd on a given Date (Loops every 14 days)
This works fine but sometimes we want to ignore a Date as the funds were rec'd soon after that date and the delay was not the fault of the Lendee.
I have setup a Form that displays the data and has a button to add a selected date to a Table with fields LoanID and IgnoreDate.
This works fine.
I then made a Public Function to return either the date or 1st Jan 1995 as the Variable SkipThisDate in the Loop of the Late Fee Calculate Code.
Extract of code is here.
Code:
SkipThisDate = IgnoreLateFeeDate(LoanID, CommenceDate)
If CommenceDate = SkipThisDate Then
CommenceDate = CommenceDate + 14
RepayCount = RepayCount + 1
End If
The problem is that while the TblLateFeeIgnore has the correct records and dates match the code only ignores some of the dates and not all of them.
Is there some better way to compare dates then what I use above
Code:
If CommenceDate = SkipThisDate Then
Not sure where the problem is

Thanks
