Solved

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

Posted on 2014-09-14
2
608 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
2 Comments
 
LVL 24

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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

815 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now