ACC95: Form Size Shrinks Changing from Design View to Form View (148853)
The information in this article applies to:
- Microsoft Access for Windows 95 7.0
This article was previously published under Q148853 SYMPTOMS
When you toggle a form back and forth from Design view to Form view, the
form shrinks in size.
CAUSE
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")
STATUS
Microsoft has confirmed this to be a problem in Microsoft Access 7.0. This
problem no longer occurs in Microsoft Access 97.
RESOLUTION
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
and call it in the Open event of the form as follows:
Private Sub Form_Open(Cancel As Integer)
SizeToFitForm
End Sub
Modification Type: | Major | Last Reviewed: | 11/17/2000 |
---|
Keywords: | kbbug kbusage KB148853 |
---|
|