Just a note, I did search for any recent threads on this subject and none of them related to my problem in a way I could use.
I am trying to calculate monthly interest in a querry for a report on pieces of collateral on a line of credit. I have no problem doing this if the unit has been on the loan for more than a month, in which case I just use
Monthlyinterest: [CurPrin]*[Rate]/12
However, for the units that are added to the loan, say on the 15th of the month, I need to caclulate the interest by day. So far I have come up with the following equation:
Monthlyinterest: IIf(Year(Date())) = Year(Efdate), IIf(Month(Date())) = Month(Efdate), ([OrigPrin]*[Rate])/12, ((Date()-Efdate)*[Rate]*[CurPrin])/365
Where Efdate = date the unit was added to the loan.
Right now I am getting a "wrong number of arguments" error.
I am relatively new to access. If there is a way to accomplish this with having so many imbedded "if" statements that would be great. Otherwise I need to figure out more of the logic on this equation. Thanks!