StayAtHomeMom
Technical User
Hello,
I have inherited a report that is based on a query. When this report is run (OnOpen event), it calls a macro that uses a form to prompt the user for some inputs (which are used as criteria for the underlying query). I have a new request where I have to prompt the user for how many rows the query will return (setting the Top Values Property of that query). It's used for showing "Top 50 Customers" or "Top 100 Customers", etc. How can I capture that user input to set that Query property?
OR
Is there some Report property somewhere that limits the number of records to include from query results?
Note: There's no VBA associated with this set up. It's all macros, forms, queries, reports, etc.
I'd appreciate any hints you could provide! THANK YOU!
I have inherited a report that is based on a query. When this report is run (OnOpen event), it calls a macro that uses a form to prompt the user for some inputs (which are used as criteria for the underlying query). I have a new request where I have to prompt the user for how many rows the query will return (setting the Top Values Property of that query). It's used for showing "Top 50 Customers" or "Top 100 Customers", etc. How can I capture that user input to set that Query property?
OR
Is there some Report property somewhere that limits the number of records to include from query results?
Note: There's no VBA associated with this set up. It's all macros, forms, queries, reports, etc.
I'd appreciate any hints you could provide! THANK YOU!