Question : How to hide a startup form

I would like to use a startup form to control the order in which other forms will be closed if someone clicks the main Access close button, the red X. I need the startup to open a different form and then go into hiding.  I tried the code below, it did not work. As you can see I'm opening a different form, frmOrderList, and then trying to hide the startup, frmHiddenStartUp. I've even tried to placing code in frmOrderList to hide frmHiddenStartUP and it did not work.

Is there something about a startup form that will not allow it to be invisible?



Code Snippet:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
Private Sub Form_Load()

'*********************************************************
'Open the Order List form
'*********************************************************
DoCmd.OpenForm "frmOrderList", acNormal, , , acFormEdit, acWindowNormal

'*********************************************************
'Hide this startup form
'*********************************************************
Me.Form.Visible = False

End Sub

Answer : How to hide a startup form

change

Me.Form.Visible = False

to

Me.Visible = False
Random Solutions  
 
programming4us programming4us