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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PrintOut...print only the the current page of a report 1

Status
Not open for further replies.

Saxie1

Technical User
Jan 20, 2000
15
US
From the print preview screen, I have my report set up to print OnClose. What syntax do I use to print only the record currently displayed, not the whole report?<br>
In MsWord I know I can use<br>
<br>
PrintOut Range:=wdPrintCurrentPage<br>
<br>
to do what I want, is there a similar command for MsAccess?<br>
Thanks<br>
Phil
 
There is but I don't think it works too well in '97<br>
you have to use code<br>
<br>
DoCmd.PrintOut acSelection, pagefrom, pageto, acDraft, Copies, collatecopies<br>
<br>
<br>
Create a command button and then paste this in the &quot;Build window&quot; or open properties and look for the On-click event it will be the only one with the word Event Procedure in it<br>
click the down arrow and paste it in there
 
Thanks DougP. Your right it doesn't work very well, I'll keep playing.<br>Saxie1
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top