VBA Restore Window

G

Guest

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
 
G

Guest

F1stman:
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.
 

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