Restore Form

D

Delker

Switchboard Manager creates the following code to be run
when the Switchboard form opens, and I would like to add a
command to ensure that the form is restored after viewing
a report/form that is set to be maximized.
"Private Sub Form_Open(Cancel As Integer)
' Minimize the database window and initialize the form.

' Move to the switchboard page that is marked as the
default.
Me.Filter = "[ItemNumber] = 0 AND [Argument]
= 'Default' "
Me.FilterOn = True

End Sub"

Thanks!!!
 
V

Van T. Dinh

So you don't want the the Switchboard Form maximized?

If that's the case, use:

DoCmd.Restore

In the Form_Activate Event of the Switchboard Form.

HTH
Van T. Dinh
MVP (Access)
 

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