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

Zoom and the On Open Event 1

Status
Not open for further replies.

Mabjro

Programmer
Jun 3, 2003
127
US
Is there a way to make a report automatically zoom to fit when it opens. I tried using VB and using runcommand zoomtofitwindow, but I get an error that that command is not available now. Any Ideas anyone?

Thanks
 
Are you opening the report via a command button on a form?? If so, after your OpenReport statement, insert this code:
Code:
DoCmd.RunCommand acCmdFitToWindow
 
Works like a dream. Thank you very much and for that you get a star.

Mabjro
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top