Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default limit records in query

I am using query in excel to pull in data from an Access database. I only
want 20 results, but the option in xls query is not working when I tick it
and select only 20 records to be included. I don't want to limit the records
in Access as the source there is used by other xls queries. Is there
something else I have to do to make the xls query return only 20 records?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default limit records in query

hi.
are we talking about microsoft query ie on the menubar...
dataimport external datanew database query?

normally, a querry return data that matches some criteria or returns it all.
you can restrick the number of records by adding criteria but i know of no
way to restrict it to 20 and only 20 records. the question would come
up....which 20? based on what selection criteria.

Post back if you have quetions.
regards
FSt1

"dsharbaugh" wrote:

I am using query in excel to pull in data from an Access database. I only
want 20 results, but the option in xls query is not working when I tick it
and select only 20 records to be included. I don't want to limit the records
in Access as the source there is used by other xls queries. Is there
something else I have to do to make the xls query return only 20 records?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 389
Default limit records in query

I see what you're saying...you can limit the records in the options, but
they don't follow through to the spreadsheet, only to the GUI. However you
could add your own Top keyword to the SQL. That seems to work.

--
Tim Zych
SF, CA

"dsharbaugh" wrote in message
...
I am using query in excel to pull in data from an Access database. I only
want 20 results, but the option in xls query is not working when I tick it
and select only 20 records to be included. I don't want to limit the
records
in Access as the source there is used by other xls queries. Is there
something else I have to do to make the xls query return only 20 records?



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
QUERY FOR TODAY RECORDS shaqil Excel Worksheet Functions 3 May 2nd 07 10:21 AM
Keep cell data with records from a query Secret Squirrel Excel Discussion (Misc queries) 2 January 26th 07 10:46 PM
Keeping cell data with records from a query Secret Squirrel Excel Discussion (Misc queries) 0 January 23rd 07 05:41 PM
Limit of records when using auto filter JennD Excel Discussion (Misc queries) 5 March 1st 06 06:11 PM
Limit trend line to last 12 records [email protected] Charts and Charting in Excel 1 January 3rd 06 01:40 PM


All times are GMT +1. The time now is 12:57 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"