I'm using Access 2003.
I have a report that uses a form to collect parameters before generating the report.
Here's the VBA code in the report's Open event:
When the DoCmd.Maximize command fires, the report does indeed maximize; however, the Switchboard form also displays in the top left corner of the blank report until the data is retrieved.
Is there a way to hide the Switchboard form before the report has its data?
Thanks.
Wayne
I have a report that uses a form to collect parameters before generating the report.
Here's the VBA code in the report's Open event:
Private Sub Report_Open(Cancel As Integer)
' Set public variable to true to indicate that the report is in the Open event
GblnInReportOpenEvent = True
' Open Dialog to collect parms
DoCmd.OpenForm "frmRptClaimsByDestinationCountryDialogue", , , , , acDialog
' Cancel Report if User Clicked the Cancel Button
If fIsLoaded("frmRptClaimsByDestinationCountryDialogue") = False Then
Cancel = True
Else
DoCmd.Maximize
End If
' Set public variable to false to indicate that the Open event is completed
GblnInReportOpenEvent = False
End Sub
When the DoCmd.Maximize command fires, the report does indeed maximize; however, the Switchboard form also displays in the top left corner of the blank report until the data is retrieved.
Is there a way to hide the Switchboard form before the report has its data?
Thanks.
Wayne