control panel will not return to maximise

mtagliaferri

Registered User.
Local time
Today, 03:41
Joined
Jul 16, 2006
Messages
550
I have the following code to maximise and hide the menu bar:
Code:
Me.Filter = "[ItemNumber] = 0 AND [Argument] = 'Predefinita' "
    Me.FilterOn = True
    DoCmd.Maximize
    Dim i As Integer
    For i = 1 To CommandBars.Count
    CommandBars(i).Enabled = False
    Next i
End Sub

When closing any form that has been open from the control panel the control panel will not return to a maximise but will be hopen smaller, how can I always have my control panel on maximise when I close any forms or reports!!!
Thanks
Marco
 
Hi mtagliaferri,

Don't normally suggest this but if you create a macro "autoexec" and within it open a form and maximise, does this solve your problem?

When I scout for a VBA solution I will let you know, as interested myself, always learning.....

Robert888
 

Users who are viewing this thread

Back
Top Bottom