form size

  • Thread starter Thread starter Emergency Power
  • Start date Start date
E

Emergency Power

Hello.
I have a form called frmClientContract that has a button for a report
preview that I maximized. When I exit off the report back to the form, the
form is now maximized. How do I make the form normal size on close of the
rpt preview ?
Thank you,
 
try adding the following code to the report's Close event procedure, as

DoCmd.SelectObject acForm, "frmClientContract"
DoCmd.Restore

hth
 
I put the DoCmd.Restore code in the Report_Deactivate() event so the normal
windows are restored if the user closes the report or leaves the report open
and navigates to any other object.
 
Back
Top