how to make a report using just the last record

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jlcastrejon
    New Member
    • Feb 2007
    • 2

    how to make a report using just the last record

    Hi everybody,
    Could someone tell me how to make a report using just the last record of my access 2007 database?
    Tks.
    Jose
  • NeoPa
    Recognized Expert Moderator MVP
    • Oct 2006
    • 32636

    #2
    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 :
    Code:
    SELECT   TOP 1 *
    FROM     YourTable
    ORDER BY YourSortField DESC

    Comment

    Working...