By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
462,393 Members | 531 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 462,393 IT Pros & Developers. It's quick & easy.

how to make a report using just the last record

P: 2
Hi everybody,
Could someone tell me how to make a report using just the last record of my access 2007 database?
Mar 26 '10 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 15k+
P: 31,770
That all depends on what you mean by last really doesn't it.

You would create a query for the report to use which is sorted in reverse order and use the TOP predicate of the SELECT clause :
Expand|Select|Wrap|Line Numbers
  1. SELECT   TOP 1 *
  2. FROM     YourTable
  3. ORDER BY YourSortField DESC
Mar 26 '10 #2

Post your reply

Sign in to post your reply or Sign up for a free account.