S
Sequoia via AccessMonster.com
Howdy folks,
I have an Access database (in Access 2000 format) for tracking AutoCAD
drawing files recieved. I need to build a query to return only the latest
version of a particluar drawing, but I'm stumped as to how to build the
query.
The main table (tblPlans) contains the following fields (plus others):
ID (AutoID)
Store
dwg no
Recd Date
Title
Architect
Each time I receive a file, it becomes a separate record, even if there is
already a previous version of the file in the table already.
I know this is not a fully-normalized database (I do have separate tables
for Store and Architect details), but I'm not sure I want to go through the
hassel of "atomizing" the data, then have to build forms, subforms,
queries, reports, etc. to tie it back together so it makes sense to humans.
What I need to do with this query is to find the latest version of each
drawing, i.e., the most recent
[Recd Date]
WHERE
[Store], [dwg no], [Title], and [Architect]
all match
so if I have
"1","XXX","A1.0","11/29/04","Floor Plan","ZZZ"
"2","XXX","A1.0","11/30/04","Floor Plan","ZZZ"
"3","XXX","A1.0","12/12/04","Floor Plan","ZZZ"
"4","YYY","A1.1","10/29/04","Mezzanine Plan","QQQ"
"5","YYY","A1.1","11/15/04","Mezzanine Plan","QQQ"
"6","YYY","A1.1","12/06/04","Mezzanine Plan","QQQ"
ONLY records 3 and 6 are returned by the query.
I'm not sure how to get there.
Thanks for any help you can offer.
Thanks,
- Sequoia
I have an Access database (in Access 2000 format) for tracking AutoCAD
drawing files recieved. I need to build a query to return only the latest
version of a particluar drawing, but I'm stumped as to how to build the
query.
The main table (tblPlans) contains the following fields (plus others):
ID (AutoID)
Store
dwg no
Recd Date
Title
Architect
Each time I receive a file, it becomes a separate record, even if there is
already a previous version of the file in the table already.
I know this is not a fully-normalized database (I do have separate tables
for Store and Architect details), but I'm not sure I want to go through the
hassel of "atomizing" the data, then have to build forms, subforms,
queries, reports, etc. to tie it back together so it makes sense to humans.
What I need to do with this query is to find the latest version of each
drawing, i.e., the most recent
[Recd Date]
WHERE
[Store], [dwg no], [Title], and [Architect]
all match
so if I have
"1","XXX","A1.0","11/29/04","Floor Plan","ZZZ"
"2","XXX","A1.0","11/30/04","Floor Plan","ZZZ"
"3","XXX","A1.0","12/12/04","Floor Plan","ZZZ"
"4","YYY","A1.1","10/29/04","Mezzanine Plan","QQQ"
"5","YYY","A1.1","11/15/04","Mezzanine Plan","QQQ"
"6","YYY","A1.1","12/06/04","Mezzanine Plan","QQQ"
ONLY records 3 and 6 are returned by the query.
I'm not sure how to get there.
Thanks for any help you can offer.
Thanks,
- Sequoia