Maximize

G

Guest

Hi,

I have a Main form, that has a report viewer. In the report viewer you can
select reports and view them before you print them. After you close out from
print preview, the Main Form and the Report viewer downsize, they are just
not maximized.

How do you keep both screens maximixed at all times. Especially, the main
form. Thanks.
 
J

John Vinson

How do you keep both screens maximixed at all times. Especially, the main
form. Thanks.

Put the following code in the form's GotFocus event:

Private Sub Form_GotFocus()
DoCmd.Maximize
End Sub

John W. Vinson[MVP]
 

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