Specify the number of records shown

R

Round up on .01

I am running a report and i want it to prompt me and ask how many records i
need shown.
 
D

Duane Hookom

One method is to add a column to your query like:
NumToPrint: [Enter number of records to print]

Add two text boxes in the detail section:
Name: NumToPrint
Control Source: NumToPrint

Name: txtCount
Control Source: =1
Running Sum: Over All

Then in the On Format event of the detail section, add code like:
Cancel = (Me.txtCount > Me.NumToPrint)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top