L
LianeMT
I'm working on a db that manages documents/drawings. Each document/drawing
has a DocNumber assigned to it. If there's a revision to the
document/drawing, it will have a RevNumber added to the DocNumber. I have a
query that pulls released documents and contains the information: DocNumber,
RevNumber, ReleaseDate.
I'm trying to work out a filter to only report the latest revision of the
document, and not list all revisions. For example, if my query pulls the
following documents:
DocNumber RevNumber ReleaseDate
311D5000 1/1/2008
311D5000A A 2/2/2008
311D5000B B 2/15/2008
311D5001 2/11/2008
311D5002 1/06/2008
I really only want to see the following:
DocNumber RevNumber ReleaseDate
311D5000B B 2/15/2008
311D5001 2/11/2008
311D5002 1/06/2008
The first two occurences of 311D5000 (the original and Rev A) should be
discarded from the query (but not removed from the table that holds the data).
Any suggestions would be welcome. Thank you!
LianeMT
has a DocNumber assigned to it. If there's a revision to the
document/drawing, it will have a RevNumber added to the DocNumber. I have a
query that pulls released documents and contains the information: DocNumber,
RevNumber, ReleaseDate.
I'm trying to work out a filter to only report the latest revision of the
document, and not list all revisions. For example, if my query pulls the
following documents:
DocNumber RevNumber ReleaseDate
311D5000 1/1/2008
311D5000A A 2/2/2008
311D5000B B 2/15/2008
311D5001 2/11/2008
311D5002 1/06/2008
I really only want to see the following:
DocNumber RevNumber ReleaseDate
311D5000B B 2/15/2008
311D5001 2/11/2008
311D5002 1/06/2008
The first two occurences of 311D5000 (the original and Rev A) should be
discarded from the query (but not removed from the table that holds the data).
Any suggestions would be welcome. Thank you!
LianeMT