By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,482 Members | 2,451 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,482 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?
Tks.
Jose
Mar 26 '10 #1
Share this Question
Share on Google+
1 Reply


NeoPa
Expert Mod 15k+
P: 31,186
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.