R
RD
Hi all,
Ordinarily I can figure this kind of thing out but, I just can't seem
to wrap my head around this one.
I have a table that tracks clients activities. It has ClientID,
ActivityID, Start Date and EndDate along with a slew of other columns
(I didn't create this POS). I need to return the CURRENT record
(defined as EndDate is null) or, if there is no null EndDate for a
ClientID, the latest EndDate.
To restate, I need to return a row for every ClientID showing either a
null EndDate OR, if no Null EndDate then, the latest EndDate.
Here's the kicker, and where all my attempts have failed, I can't have
two records for a ClientID, one WITH an EndDate AND one with a null
EndDate. I absolutely need one record per ClientID.
This recordset is the source of a form that is actually pretty
important to a particular business process. I'm open to either just a
query or a vba solution.
So, any ideas?
Thanks,
RD
Ordinarily I can figure this kind of thing out but, I just can't seem
to wrap my head around this one.
I have a table that tracks clients activities. It has ClientID,
ActivityID, Start Date and EndDate along with a slew of other columns
(I didn't create this POS). I need to return the CURRENT record
(defined as EndDate is null) or, if there is no null EndDate for a
ClientID, the latest EndDate.
To restate, I need to return a row for every ClientID showing either a
null EndDate OR, if no Null EndDate then, the latest EndDate.
Here's the kicker, and where all my attempts have failed, I can't have
two records for a ClientID, one WITH an EndDate AND one with a null
EndDate. I absolutely need one record per ClientID.
This recordset is the source of a form that is actually pretty
important to a particular business process. I'm open to either just a
query or a vba solution.
So, any ideas?
Thanks,
RD