PC Review


Reply
Thread Tools Rate Thread

access query help

 
 
=?Utf-8?B?THVrZQ==?=
Guest
Posts: n/a
 
      24th Mar 2007
im trying to set the criteria in a query to only show the top ten numbers of
a column. what's the command i need to use? im using access 2000.
 
Reply With Quote
 
 
 
 
Kerry
Guest
Posts: n/a
 
      24th Mar 2007
On Mar 24, 4:04 pm, Luke <L...@discussions.microsoft.com> wrote:
> im trying to set the criteria in a query to only show the top ten numbers of
> a column. what's the command i need to use? im using access 2000.



The SQL would be something like:
SELECT TOP 10 [COLUMN]*
FROM [TABLE]
ORDER BY [COLUMN] DESC;

 
Reply With Quote
 
John W. Vinson
Guest
Posts: n/a
 
      24th Mar 2007
On Sat, 24 Mar 2007 13:04:15 -0700, Luke <(E-Mail Removed)>
wrote:

>im trying to set the criteria in a query to only show the top ten numbers of
>a column. what's the command i need to use? im using access 2000.


Kerry's SQL will work fine; another way to do the same thing is to right
mouseclick in the query design grid (on the grey background of the table
window), view the query's Properties, and set the Top Values property to 10.
Make sure you're sorting by the desired column.

John W. Vinson [MVP]
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
MS Access metadata repository generation query, matrix generationquery, table-generation query, array-generation query. Roy Roebuck Microsoft Access Database Table Design 1 20th Dec 2008 07:23 PM
Writing a VBA Query for MS Access and have it show the Query Object Window Pete Straman Straman via AccessMonster.com Microsoft Access Queries 5 4th Feb 2005 06:08 PM
Linking problem - Access query to MS query to extract data to Exce =?Utf-8?B?RmF0TWFu?= Microsoft Access Queries 0 23rd Nov 2004 06:43 PM
Coworker modified base query, now form does not allow access to query. Brainwave Surfer Microsoft Access Forms 2 20th Aug 2004 02:20 PM
RE: Access 97 convert a xtab query into a make table query =?Utf-8?B?SmVuMTIxNw==?= Microsoft Access Queries 1 15th Apr 2004 05:16 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:45 PM.