aggregate function inside an aggregate function

Hecronis

Registered User.
Local time
Today, 17:28
Joined
Apr 26, 2016
Messages
60
Hey,
I'm trying to use an aggregate function inside another aggregate function and I'm having a difficult time. I don't really know what all I need to put in here. Here is what I have:

Code:
dlookup("Amount_Owed", "TblRent_OwedAtDischarge", "ID_RentOwed = " & DMax(""ID_RentOwed"", ""TblRent_OwedAtDischarge"", "ID_Number = "" & "[forms]![FrmClient_Info]![ID_Number1]'"")"))

Each "Amount_Owed" has an auto-number "ID_RentOwed" associated with it and a clients ID_Number. I need to look up what the most recent amount owed is for for a client.
 

Users who are viewing this thread

Back
Top Bottom