Article ID: 121899
Article Last Modified on 1/19/2007
For Microsoft Access 97:
Macro Name Macro Action
-------------------------
AutoExec RunCommand
OpenForm
Restore Restore
Max Maximize
AutoExec Actions
----------------------
RunCommand
Command: WindowHide
OpenForm
Form Name: Form1
Restore Actions
---------------
Restore
Max Actions
-----------
Maximize
For Microsoft Access version 2.0 and 7.0:
Macro Name Macro Action
-------------------------
AutoExec DoMenuItem
OpenForm
Restore Restore
Max Maximize
AutoExec Actions
----------------
DoMenuItem
Menu Bar: Database
Menu Name: Window
Command: Hide
OpenForm
Form Name: Form1
Restore Actions
---------------
Restore
Max Actions
-----------
Maximize
Sub Button0_Click ()
Me.Visible = False
DoCmd.Openform "Form2" 'Use this line in Microsoft Access 7.0
'and 97
DoCmd OpenForm "Form2" 'Use this line in Microsoft Access 2.0
End Sub
OnDeactivate: Restore
OnActivate: Max
Keywords: kbbug KB121899