scifibum
Well-known Member
- Joined
- Jul 22, 2004
- Messages
- 503
Hi all,
Just getting started with Access, and I want to be able to select the top N records from a table.
I can build the query in Access design view just fine to pull some fixed number of records.
What I want to do, though, is have the N value be a parameter so the user can specify each time the query how many records they want to see.
Is there a way to set up a parameter prompt for the number of records to pull in a "Select Top N" query?
Or would I need to look into using VBA to construct the SQL? I think I can do that easily enough, but I'd like to know the options.
Thanks very much for any assistance.
Just getting started with Access, and I want to be able to select the top N records from a table.
I can build the query in Access design view just fine to pull some fixed number of records.
What I want to do, though, is have the N value be a parameter so the user can specify each time the query how many records they want to see.
Is there a way to set up a parameter prompt for the number of records to pull in a "Select Top N" query?
Or would I need to look into using VBA to construct the SQL? I think I can do that easily enough, but I'd like to know the options.
Thanks very much for any assistance.