Total Records Returned for Report (1 Viewer)

TravelerOn

Registered User.
Local time
Today, 09:32
Joined
Dec 17, 2001
Messages
21
Question:

I have a query that returns 5,997 records from a larger table of 16,000 records. On the report, I only want to see 150 of that 5,997. How do I tell Access to only show me the first 150....so that my report isn't over 500 pages long?

Yes, I've tried setting the total records returned on the Query properties. It isn't working. Is there another method?:rolleyes:
 

simongallop

Registered User.
Local time
Today, 09:32
Joined
Oct 17, 2000
Messages
611
In the queries properties set TopValues to 150
 

TravelerOn

Registered User.
Local time
Today, 09:32
Joined
Dec 17, 2001
Messages
21
already did

I did that, and it didn't work.
 

Jon K

Registered User.
Local time
Today, 09:32
Joined
May 22, 2002
Messages
2,209
Did you use any Order in your query? If you use Top 150 with an Order By clause, it will return more than 150 records if there is a tie.

See if this helps. Create another query from your query to retrieve Top 150 records without specifying any order (type in the SQL View of a new query, replacing with the correct query name):-

SELECT TOP 150 *
FROM yourQuery

Run this new query.
 
Last edited:

Users who are viewing this thread

Top Bottom