Code Examples For RunCommand Constants

Maximize Form

acCmdDocMaximize

This code maximizes the current form. It is designed to be placed behind a button called cmdMax.

'***************** Code Start *******************
'Code by Terry Wickenden

Sub cmdMax_Click()

  DoCmd.RunCommand acCmdDocMaximize

End Sub

'****************** Code End ********************