form size

  • Thread starter Emergency Power
  • 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,
 
T

tina

try adding the following code to the report's Close event procedure, as

DoCmd.SelectObject acForm, "frmClientContract"
DoCmd.Restore

hth
 
B

Branislav Mihaljev

Hi,

I think it is enough

DoCmd.Restore

in OnClose event of the report.
 
P

Paul Shapiro

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.
 

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