?
Solved

Access - Select record # in Query

Posted on 2011-03-07
4
Medium Priority
?
243 Views
Last Modified: 2012-05-11
Hi,

Is there a way in Query Design View, I can select only the first 1 - 50,000 of 100,000 records to be displayed? (perhaps in the 'Criteria' section).

Thanks
0
Comment
Question by:tahirih
[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
  • 3
4 Comments
 
LVL 75

Accepted Solution

by:
käµfm³d   👽 earned 2000 total points
ID: 35059113
I'm not sure about the Designer, but you could open up SQL view and add "top 50000" to your query.

Example:
SELECT TOP 50000 *
FROM tblName

Open in new window

0
 

Author Comment

by:tahirih
ID: 35059227
I am adding other parameters to this query, but simplified it for the posting of the question.

Please find the SQL statement as follows:

SELECT [I10-I9 Dx Gem].[ICD-10 Dx Code], Count([I10-I9 Dx Gem].[ICD-10 Dx Code]) AS [CountOfICD-10 Dx Code]
FROM [I10-I9 Dx Gem]
GROUP BY [I10-I9 Dx Gem].[ICD-10 Dx Code];

0
 

Author Comment

by:tahirih
ID: 35059248
The following worked:

SELECT TOP 50000 [I10-I9 Dx Gem].[ICD-10 Dx Code], Count([I10-I9 Dx Gem].[ICD-10 Dx Code]) AS [CountOfICD-10 Dx Code]
FROM [I10-I9 Dx Gem]
GROUP BY [I10-I9 Dx Gem].[ICD-10 Dx Code];


0
 

Author Comment

by:tahirih
ID: 35059251
Please confirm what the statement would be for the remaining, > 50000

Thank you
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
The Windows Phone Theme Colours is a tight, powerful, and well balanced palette. This tiny Access application makes it a snap to select and pick a value. And it doubles as an intro to implementing WithEvents, one of Access' hidden gems.
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

764 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