S
Stephen Lynch
I have a query that caculates the balance due on a loan. I have asked
everywhere and no one seems to know how to accomplish this.
Anyway I got it to work, but the DLOOKUP is so slow it is a waste of my
time. I need to have it because it refers to the prior balance to calculate
the interest and principal and then determine the new balance by deducting
the principal.
Here's my query.
SELECT
IIf([RecCounter]=1,[LoanAmount],DLookUp("[Query13]![EndBalance]","Query13","[RecCounter]
= " & [RecCounter]-1)) AS StartBalance,
([Days]*[StartBalance])*[IntRateFactor] AS Interest, [Loan]-[Interest] AS
Principal, [StartBalance]-[Principal] AS EndBalance, Loan1a.RecCounter
FROM Loan1a;
Does anyone have any ideas. I tryed elookup but that also is slow.
How about so code that rewrites each row. HELP!!!
everywhere and no one seems to know how to accomplish this.
Anyway I got it to work, but the DLOOKUP is so slow it is a waste of my
time. I need to have it because it refers to the prior balance to calculate
the interest and principal and then determine the new balance by deducting
the principal.
Here's my query.
SELECT
IIf([RecCounter]=1,[LoanAmount],DLookUp("[Query13]![EndBalance]","Query13","[RecCounter]
= " & [RecCounter]-1)) AS StartBalance,
([Days]*[StartBalance])*[IntRateFactor] AS Interest, [Loan]-[Interest] AS
Principal, [StartBalance]-[Principal] AS EndBalance, Loan1a.RecCounter
FROM Loan1a;
Does anyone have any ideas. I tryed elookup but that also is slow.
How about so code that rewrites each row. HELP!!!