Greetings,
I am using the following code to display a report when a command button on a popup form is pressed. What I have had to do, however, is add the line of code, "DoCmd.Close" to close the form (so that the report can be seen). Otherwise the form overlays the report. Does anyone know of a way to keep the form still open but yet have it displayed "behind" the report (once the button is pressed to display the report)? (By the way, this is a popup form that is not modal).
Code:
Private Sub cmdBankersAdvisory_Click()
Dim strReportName As String
strReportName = "Report1"
DoCmd.Close
DoCmd.OpenReport strReportName, acViewPreview
End Sub
Thanks in advance!
I am using the following code to display a report when a command button on a popup form is pressed. What I have had to do, however, is add the line of code, "DoCmd.Close" to close the form (so that the report can be seen). Otherwise the form overlays the report. Does anyone know of a way to keep the form still open but yet have it displayed "behind" the report (once the button is pressed to display the report)? (By the way, this is a popup form that is not modal).
Code:
Private Sub cmdBankersAdvisory_Click()
Dim strReportName As String
strReportName = "Report1"
DoCmd.Close
DoCmd.OpenReport strReportName, acViewPreview
End Sub
Thanks in advance!