CountyArchitect
Technical User
Greeting:
I have a main form of members with a filtered subform with individual payments made by the member (filtered) from the main form.
There is a textbox that preforms a DSum of all payments made by that particular member on the main form. What I would also like to see is the last payment amount made by this particular member on the main form.
I tried the following--but it returns a random record from the filtered set...not the last record.
=IIf(IsNull([MemberID]),0,DLast("[PaymentAmount]","Payments","[MemberID]=" & [MemberID]))
What am I missing?
Thanks much for the help.
I have a main form of members with a filtered subform with individual payments made by the member (filtered) from the main form.
There is a textbox that preforms a DSum of all payments made by that particular member on the main form. What I would also like to see is the last payment amount made by this particular member on the main form.
I tried the following--but it returns a random record from the filtered set...not the last record.
=IIf(IsNull([MemberID]),0,DLast("[PaymentAmount]","Payments","[MemberID]=" & [MemberID]))
What am I missing?
Thanks much for the help.