Most recent revision query

D

Delboy

Hi All

I have a table which stores drawing types and their revisions alon
with the date completed.
I want to do a query which will only show the most recent revision.
Problem is, the revision numbers are actually letter which follow th
following convention "-,A,B,C,D,E......."
Is there a way for the query to know that "A" supersedes "-" and t
show the last drawings revision to be produced?

Any help would be greatly appreciated :)

Thanks
De
 
D

Delboy

Its ok, i did it by date completed! :)

Would be interesting to know if it could be done by letter though!
 
A

Allen Browne

So you want the query to return only the last revision of each drawing. See:
Getting a related field from a GroupBy (total) query
at:
http://www.mvps.org/access/queries/qry0020.htm

Four techniques are discussed, using stacked queries or subqueries. If
subqueries are new, here's an introduction:
http://allenbrowne.com/subquery-01.html

Once you have that working, you may still have fun with the dash. Although
Asc("-") is less than Asc("A"), Access handles dashes inconsistently:
http://support.microsoft.com/kb/271661
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top