DoCmd.Maximize... not working

  • Thread starter Thread starter dochball
  • Start date Start date
D

dochball

Guest
Hello,
I have tried using the following code to maximize my form on open but it is not working, any ideas?

Code:
Private Sub Form_Open(Cancel As Integer)
On Error GoTo Err_Form_Open
    
    
    DoCmd.Maximize
    
Exit_Form_Open:
    Exit Sub
Err_Form_Open:
    MsgBox Err.Description
    Resume Exit_Form_Open
    
End Sub
 
The code looks ok. Make sure that in the form's properties it is placed on the On Open Event.
 
Move your code to the Activate event.
 

Users who are viewing this thread

Back
Top Bottom