Solved

MS Access Query--Display only first (top) record set

Posted on 2014-09-14
2
616 Views
Last Modified: 2014-09-14
Experts:

I have an Access Query ("Querry1").  Record-sets within this Query are automatically sorted by the 'Last Field that was Modified' so the Record-set containing the last field that was updated will always appear first (at the top) in my Query.
I only want the Query to display this first (top) Record-set (I do not want any other Record-sets to be displayed).  Does anyone have an idea how to do this?

I'm not great with Access, so if you could walk me though each step it would be most appreciated.

Thanks.
0
Comment
Question by:mdstalla
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 25

Accepted Solution

by:
chaau earned 500 total points
ID: 40322227
You need to use TOP 1 clause in the query. Let's assume your query has this syntax:
SELECT column1, column2, LastModifiedDate
FROM Table1
ORDER BY LastModifiedDate DESC

Open in new window

When you add the TOP 1 clause the query will look like:
SELECT TOP 1 column1, column2, LastModifiedDate
FROM Table1
ORDER BY LastModifiedDate DESC

Open in new window

0
 

Author Closing Comment

by:mdstalla
ID: 40322401
Ha!  How easy was that!

Thanks for your help C!
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question