Newbie said:
When the report is closed is there any code?
The calling module has this code where strObject = "List" and the 1 is used
to control line spacing in the report:
Sub MasterOutput(strObject)
(DIM etc.)
Select Case strObject
Case "List"
DoCmd.OpenReport "rptRetirees", acViewPreview, , , , 1
Case "Labels"
PrintLabels
Case "Mail Merge"
OutputMailMergeFile
Case "Contacts"
ExportContacts
Case Else
End Select
Exit_MasterOutput:
' frmSelectPersons is used to specify parameters for query and filter
If IsLoaded("frmSelectPersons") Then DoCmd.Close acForm,
"frmSelectPersons"
Exit Sub
(Error handler - THIS ERROR HANDLER DISPLAYS THE ERROR MESSAGE)
EndSub
The close event for the report has the following code:
Private Sub Report_Close()
Call ToolBarShow("MainToolbar", True)
Call ToolBarShow("PrintRetirees", False)
DoCmd.Restore
End Sub
what is the next thing that happens?
As soon as the report displays in preview mode, control returns to the
"MasterOutput" sub and subsequently to a switchboard (the MS supplied
version).
Has your code been compiled yes
does the Runtime version include all the relevant controls and dll's
As best as I can determine, yes. The packaging wizard was used. (All this
takes place under Windows XP Home and Office XP Developers edition.)