N
Nabiyah E via AccessMonster.com
I'm pretty new to access. I'm using the 97 version and I'm very frustrated as
I cannot figure this out.
I have one field [ProviderID], which houses many different Provider IDs. This
field can also contain the same ID several times, because we have to keep a
record for every date that is applicable to that ProviderID. There is an
autonumber on the table that houses this information, which means that every
one of those records has a different autonumber. I need to be able to run a
select query that pulls the most recent entry (date) for every ProviderID in
the table and it's relative autonumber.
Originally, I ran Grpby on the ProviderID field (ascending sort) and entered
Last (instead of a Groupby on the Term_Date fields (descending sort) but it
doesn't pull the correct information. When I bring in the AutoNumber field in
it brings in all records in the table because of the GroupBy.
Here is the scenario:
[AutoNumber] [ProviderID] [Term_Date]
1 1515536 10/29/2003
2 1515536 10/21/2001
3 1515536 09/11/1999
4 1515536 07/26/2004
5 1515536 04/21/1997
6 1515536 07/21/2001
Please help. Thanks
Ny
I cannot figure this out.
I have one field [ProviderID], which houses many different Provider IDs. This
field can also contain the same ID several times, because we have to keep a
record for every date that is applicable to that ProviderID. There is an
autonumber on the table that houses this information, which means that every
one of those records has a different autonumber. I need to be able to run a
select query that pulls the most recent entry (date) for every ProviderID in
the table and it's relative autonumber.
Originally, I ran Grpby on the ProviderID field (ascending sort) and entered
Last (instead of a Groupby on the Term_Date fields (descending sort) but it
doesn't pull the correct information. When I bring in the AutoNumber field in
it brings in all records in the table because of the GroupBy.
Here is the scenario:
[AutoNumber] [ProviderID] [Term_Date]
1 1515536 10/29/2003
2 1515536 10/21/2001
3 1515536 09/11/1999
4 1515536 07/26/2004
5 1515536 04/21/1997
6 1515536 07/21/2001
Please help. Thanks
Ny