|
![]()
How to use a List Box to limit records printed in a ReportCreate a new form, and add a List Box to this Form, lstSelect, resizing it so that it displays a large number of rows. Change the Multi Select to either Simple or Extended. Set the RowSource of this List Box to be based on the Table/Query that you want to be printed, and ensure that the Bound Column is a unique value for the RowSource. Next, add a Command Button to this Form, cmdPrintSelection. In the OnClick event for this control, type the following:
This will now print the limited records out. If there is no data selected from the List Box, no Report will be produced - you can obviously change this to print the whole Report if you want.
Copyright & Disclaimer | |||||||||||||
| Last modified at 06/06/2006 13:54:05 | ||||||||||||||