I am trying to create a statement to send to customers.
I would like the statement to include a finance charge.
The underlying recordset of my report returns a row for each outstanding invoice.
The finance charge computation is like this for each line:
BalanceDue * (InvoiceDate - CurrentDate) \ 30 * MonthlyInterestRate
(I would like to use integer division if possible - hence the backslash before the 30)
I'm not sure how to do this inside an SQL statement (or if it can be done). I need to get it back with my recordset so that my report writer (MS Access) can total it.
The main issues:
1. How to include the computation overall - can something this complex be done?
2. How to get the date difference in DAYS (not microseconds since 1900, or however it stores it).
3. How to refer to CurrentDate.
4. Can integer division be used?
Thanks very much.