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

Preview Report Window Size

Status
Not open for further replies.

Radman

Programmer
Jan 20, 2000
22
AU
When i preview a report, i want it to appear maximised (the window the report is within), currently the report window appears very small and it is very annoying.<br><br>Is there an option or a way in code that i can force the report window to appear maximised as much as possible????
 
Radman,<br><br>In the properties for the report, look for two Properties, one called &quot;On Open&quot;, the Other &quot;On Close&quot;<br><br>In the On Open property use the code builder and add this:<br><br>DoCmd.Maximize<br><br>In the On Close add this:<br><br>DoCmd.Restore<br><br><br>The On close part restore command will make sure that you don't return to your form in a maximized state.<br><br>Hope that helps.<br><br>
 
Thanks for the advice.....just to note for your self that i put the <br>DoCmd.Maximize<br>in the On Open , event proceduce an there was an error,<br>So i put it in the <br>On Activate <br>event procedure and it worked fantastic<br><br>anyway Thanks<br><br>Radman
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top