T
Tom \T\
Hello Everyone,
This code is contained within a Command button. The Command button is on an
Unbound Form. The Unbound Form allows the user to enter parameters into a
query in which a Report is based. The Command Button Previews a Report.
While SysCmd(acSysCmdGetObjectState, acReport, stDocName) = acObjStateOpen
Me.Visible = False
DoEvents
Wend
Me.Visible = True
If Err = 2501 Then
Err.Clear
End If
When the Report is displayed and the Unbound Form is set to Me.Visible =
False the Task Manager is maxed out. I know this because I commented out the
above code, compiled and then saved the code. I then previewed the report
and the Task Manager remained low.
I like the ability to hide the form but how can it be modified so that it
does not max out Task Manager.
Any help would be greatly appreciated.
Tom "T"
This code is contained within a Command button. The Command button is on an
Unbound Form. The Unbound Form allows the user to enter parameters into a
query in which a Report is based. The Command Button Previews a Report.
While SysCmd(acSysCmdGetObjectState, acReport, stDocName) = acObjStateOpen
Me.Visible = False
DoEvents
Wend
Me.Visible = True
If Err = 2501 Then
Err.Clear
End If
When the Report is displayed and the Unbound Form is set to Me.Visible =
False the Task Manager is maxed out. I know this because I commented out the
above code, compiled and then saved the code. I then previewed the report
and the Task Manager remained low.
I like the ability to hide the form but how can it be modified so that it
does not max out Task Manager.
Any help would be greatly appreciated.
Tom "T"