ACC95: Form Size Shrinks Changing from Design View to Form ViewID: Q148853
|
When you toggle a form back and forth from Design view to Form view, the form shrinks in size.
The form has its ScrollBars property set to Neither and one or more of the
following properties set as follows:
BorderStyle: (set to anything but "Sizable")
-or-
ControlBox: No
-or-
Min Max Buttons: (set to anything but "Both Enabled")
Microsoft has confirmed this to be a problem in Microsoft Access 7.0. This problem no longer occurs in Microsoft Access 97.
BorderStyle: (set to anything but "Sizable")
-or-
ControlBox: No
-or-
Min Max Buttons: (set to anything but "Both Enabled")
Create the following subroutine procedure in a global module
Sub SizeToFitForm()
' Invoke the Window | Size to Fit Form menu command
DoCmd.DoMenuItem 0, 7, 6, 0, acMenuVer70
End Sub
Private Sub Form_Open(Cancel As Integer)
SizeToFitForm
End Sub
Additional query words: scroll bar bars shrink shrinking
Keywords : kbusage FmsProp
Version : 7.0
Platform : WINDOWS
Issue type : kbbug
Last Reviewed: April 30, 1999