first_page the funky knowledge base
personal notes from way, _way_ back and maybe today

Sizing the Form Window to Fit the Form

In order for the following sub-routine to work, a custom menu must be assigned to the form with the DoMenuItem action Size Window to Fit Form.

Sub Form_Load () ' 'Among other things, this event uses the custom menu 'to size the Window via old-fashioned SendKeys crap. ' SendKeys "%MW" End Sub

NOTE: In Access 97, there is the acCmdSizeToFitForm parameter of the RunCommand method of the DoCmd object.

mod date: 1998-08-07T20:36:58.000Z