R
Ra
Hi,
I have two forms that I would like to minimize at the same time.
One is called “Area IPPMâ€, and the other one is called “Area CSPC Tag Summaryâ€
I open first “Area IPPMâ€, double click on a specific record, that opens the
second form “Area CSPC Tag Summaryâ€. On the second form I have a button that
I click to open the report “Area Scrap Tag Summaryâ€.
When I click the button, with the current procedure I minimize the form
“Area CSPC Tag Summaryâ€, and close the form “Area IPPMâ€.
When I try to print the report I get an error message, because the first
form “Area IPPMâ€, is closed.
Any way I can minimize this form instead of closing it?
Private Sub Command18_Click()
On Error GoTo Err_Command18_Click
Dim stDocName As String
stDocName = "Area Scrap Tag Summary"
DoCmd.Minimize
DoCmd.OpenReport stDocName, acPreview
'DoCmd.Close acForm, "Area IPPM"
Exit_Command18_Click:
Exit Sub
Err_Command18_Click:
MsgBox Err.DESCRIPTION
Resume Exit_Command18_Click
End Sub
Any advice would be appreciated.
Thank you,
I have two forms that I would like to minimize at the same time.
One is called “Area IPPMâ€, and the other one is called “Area CSPC Tag Summaryâ€
I open first “Area IPPMâ€, double click on a specific record, that opens the
second form “Area CSPC Tag Summaryâ€. On the second form I have a button that
I click to open the report “Area Scrap Tag Summaryâ€.
When I click the button, with the current procedure I minimize the form
“Area CSPC Tag Summaryâ€, and close the form “Area IPPMâ€.
When I try to print the report I get an error message, because the first
form “Area IPPMâ€, is closed.
Any way I can minimize this form instead of closing it?
Private Sub Command18_Click()
On Error GoTo Err_Command18_Click
Dim stDocName As String
stDocName = "Area Scrap Tag Summary"
DoCmd.Minimize
DoCmd.OpenReport stDocName, acPreview
'DoCmd.Close acForm, "Area IPPM"
Exit_Command18_Click:
Exit Sub
Err_Command18_Click:
MsgBox Err.DESCRIPTION
Resume Exit_Command18_Click
End Sub
Any advice would be appreciated.
Thank you,