"What-a-Tool" <Di*************************@IHateSpam.Com> wrote
Thanks for the suggestion - Best I have now.
This may be more than you are looking for, but I have used this method
successfully to keep several of my primary forms maximized. In each of the
forms that I want to remain maximized always, I add the following:
Private Sub Form_Resize()
If GetMaximize(Me.Name) Then Me.TimerInterval = 1
End Sub
Private Sub Form_Timer()
DoCmd.Maximize
Me.TimerInterval = 0
End Sub
In a module:
Private shouldMaximize As Boolean
Public Sub SetMaximize(doMax As Boolean)
shouldMaximize = doMax
End Sub
Public Function GetMaximize(callingForm As String) As Boolean
GetMaximize = shouldMaximize
End Function
I only actually call SetMaximize twice - once, to set it to false as each of
the primary forms are opened:
SetMaximize False
With DoCmd
.OpenForm "HomeForm", , , , , acHidden
.OpenForm "OffenderForm", , , , , acHidden
.OpenForm "AddressForm", , , , , acHidden
.OpenForm "InvestigationForm", , , , , acHidden
.OpenForm "ObligationForm", , , , , acHidden
.OpenForm "PhotoForm", , , , , acHidden
.OpenForm "DocForm", , , , , acHidden
.OpenForm "SupervisionForm", , , , , acHidden
End With
and shortly after, when they are loaded:
SetMaximize True. The SetMaximize is necessary to prevent flicker on
opening the primary forms.
Drawback: Reports can only be previewed from one of the primary forms, not
from a called dialog form, otherwise the report 'hides' behind the primary
(maximized) form.
Darryl Kerkeslager
Power corrupts.
Absolute power corrupts absolutely.
Knowledge is power.
See
www.adcritic.com/interactive/view.php?id=5927