Solved

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

Posted on 2014-09-14
2
620 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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Suggested Solutions

Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

734 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