Try Docmd.Restore. I put this command in every Form_Activate and it puts the
form size back to its original size. I ran into a problem where users were
previewing a report and they maximized the report to see it better. When they
closed the preview and went back to the report form, the form took up the
entire screen. This prevents anything like that from happening.
> Hello All,
> I know that this should be very easy bu I am having trouble setting the
> focus to and restoring a form through code. Here is the situation:
> I have a directory form which opens a project information window when an
> entry in the subform is clicked. Also when the subform field is clicked, the
> directory window minimizes as the info window opens. The only problem is I
> cannot figure out how to restore the directory once the info window closes.
> I have tried SetFocus and even maximize commands in the info window's
> OnClose event and the custom close button's OnClick event.
> Please correct me or let me know if I am on the right track.
> Many Thanks,
> Adam Kem