Query to list only 50 latest records???

  • Thread starter Thread starter Joe M
  • Start date Start date
J

Joe M

Hi, how do I create a query to list only the last 50 latest records of a
table????
 
Hi, how do I create a query to list only the last 50 latest records of a
table????

Create a Top 50 query and sort on the date field (or whatever field
determines what is latest or oldest) descending.

Create a regular Select Query, then click on the Top Values tool
button (it probably says "All" at the present time) and enter the
value.

SELECT TOP 50 TableName.*, TableName.DateField
FROM TableName
ORDER BY TableName.DateField DESC;
 
Thanks Fredg,
It works, now I can list only the 50 latest records.
But now I also need the 50 records to be sort aphabetically using the Name
field, how do I get it to sort aphabetically?? Thanks.
 

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

Back
Top