Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pulling Top 5 Records

Status
Not open for further replies.

Neffro

Programmer
Apr 26, 2002
11
0
0
US
I am trying to make my report pull only the top 5 records. There are many more records, but I just want the top 5 to show on the report. How do you do this? thanks
 
Nope, doesn't work. Any other way.
 
Perhaps you need to sort one or more columns so that the appropriate 5 records are returned. Otherwise, providing a bit more information as to what isn't working will be helpful.

Cheers,
Bill
 
So in the query that the report is based on you used a query that said:

SELECT TOP 5 FROM TABLENAME

and it showed you more than 5 records in your report?

What happens if you run that query in the query designer?

Leslie
 
Neffro said:
Nope, doesn't work.

This does not tell us anything. Please be specific on what kind of error are you getting or how is it not working, So that we can suggest you in the right direction.

Thanks

VJ
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top