P
Prohock
I have a form called "StudentReport" when I click the "view" button I want
the form to hide (Not minimize as when StudentReport is minimized, it blocks
my page: buttons on the lower left) and the report to open. When closing the
report "Report" I want the "StudentReport" to unhide.
Everything works just fine (even "student Report" is visible again) but I
get the following VB error:
"RunTime Error '424': Object Required"
Here is the code:
VB for opening report located in "StudentReport"
Me.Visible = False
DoCmd.OpenReport "Report", acViewPreview, , strWhere
VB for closing report located in "Report"
Private Sub Report_close()
DoCmd.SelectObject acForm, "StudentReport", yes
StudentReport.Visible = True
End Sub
Please help!
the form to hide (Not minimize as when StudentReport is minimized, it blocks
my page: buttons on the lower left) and the report to open. When closing the
report "Report" I want the "StudentReport" to unhide.
Everything works just fine (even "student Report" is visible again) but I
get the following VB error:
"RunTime Error '424': Object Required"
Here is the code:
VB for opening report located in "StudentReport"
Me.Visible = False
DoCmd.OpenReport "Report", acViewPreview, , strWhere
VB for closing report located in "Report"
Private Sub Report_close()
DoCmd.SelectObject acForm, "StudentReport", yes
StudentReport.Visible = True
End Sub
Please help!