karatelung
Registered User.
- Local time
- Today, 12:07
- Joined
- Apr 5, 2001
- Messages
- 84
I guess the best way to explain this is to give an example, so:
The main form and subform both have a field called [HomeId] which is the master and child link. The other important fields in the subform are [ClientID] and [Date].
Now, of course, the subform shows only the records where [HomeId] is equal to the [HomeID] in the main form. Here's my problem.
Say a [HomeID] is "1" and three records in the subform are showing with [HomeID] = "1", [ClientID] = "A" and there are three different values for [Date]. Also, two more records are showing with [HomeID] = "1", [ClientID] = "B", and two different values for [Date]. Five records total in the subform.
What I want is for there to be only one record showing per [ClientID] with each record having the most recent [Date]. So, one [ClientID] = "A" record with the most recent [Date] of the three and one [ClientID] = "B" record with the most recent [Date] of the two.
Can someone please, please help. I would be so grateful.
TIA,
Richie
The main form and subform both have a field called [HomeId] which is the master and child link. The other important fields in the subform are [ClientID] and [Date].
Now, of course, the subform shows only the records where [HomeId] is equal to the [HomeID] in the main form. Here's my problem.
Say a [HomeID] is "1" and three records in the subform are showing with [HomeID] = "1", [ClientID] = "A" and there are three different values for [Date]. Also, two more records are showing with [HomeID] = "1", [ClientID] = "B", and two different values for [Date]. Five records total in the subform.
What I want is for there to be only one record showing per [ClientID] with each record having the most recent [Date]. So, one [ClientID] = "A" record with the most recent [Date] of the three and one [ClientID] = "B" record with the most recent [Date] of the two.
Can someone please, please help. I would be so grateful.
TIA,
Richie