Query-list last date only.

K

Karen

I have a dB with all the activity for each item by serial
no. and date. I want to run a query that will show me
every serial no. but only the last (by date) entry.

Serial No. / Date / event / location

right now I am getting 20,000 lines in the report. I want
the last date of each serial no.

Thank you,
Karen
 
C

Cameron Sutherland

make a query with two columns: Serial No. and Date. Select
the Group option (Looks like a summation or greek letter
and says Totals when you hover over). You will get a new
option for each field just above the Sort option called
Total. Put 'Group By' (default) on Serial No. and Max on
Date.
-Cameron Sutherland
 
V

Van T. Dinh

I read that Karen actually wants event / location returned as well as serial
number and date. In this case, she needs a SubQuery in a Query.

The question has already been answered in another newsgroup (queries, I
think).

Karen

Please do not multi-post. If you think it is necessary for your question to
appear in a number of newsgroups (it rarely is necessary in these access
newsgroups), please use cross-posting (sending one post with up to 3
relevant newsgroup addresses on the post).

HTH
Van T. Dinh
MVP (access)
 

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