Restore Form

  • Thread starter Thread starter Delker
  • Start date Start date
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!!!
 
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)
 
Back
Top