Minimize DataBase Window

  • Thread starter Thread starter Khalil Handal
  • Start date Start date
K

Khalil Handal

Hi,

I have a start up form named: frmMenu. It openes when double click on the
shortcut of the Access file. It openes with the database window. How can I
minimize the DataBase window on start up.
Note: I do not want to hide it from the Tools | start up .

Khalil
 
Private Sub Form_Open(Cancel As Integer)
DoCmd.SelectObject acForm, Me.Name, True
DoCmd.Minimize
End Sub

The third argument to the SelectObject method specifies whether the object
should be selected in the Database Window. Passing the value True in this
argument ensures that the object is selected in the Database Window, so the
following call to the Minimize method is applied to the Database Window
rather than to the form window.
 
Back
Top