R
Ra
Hi,
I have a form where I set up the “Pop Up†property to “Yes†and the “Modalâ€
property to “Noâ€.
I have a button that opens a report. When I open the report I want to
minimize the form (not close), and see only the report.
I wrote the following statement:
“Private Sub Print_Contribution_Click()
On Error GoTo Err_Print_Contribution_Click
Dim stDocName As String
stDocName = "IPPM Top Ten Contribution"
DoCmd.OpenReport stDocName, acPreview
DoCmd.Minimize acForm, "CSPC IPPM Contribution"
Exit_Print_Contribution_Click:
Exit Sub
Err_Print_Contribution_Click:
MsgBox Err.DESCRIPTION
Resume Exit_Print_Contribution_Click
End Sub.â€
When I Debug I get the following statement:
“Wrong number of arguments or invalid property assignmentâ€
Please advice.
Thank you,
I have a form where I set up the “Pop Up†property to “Yes†and the “Modalâ€
property to “Noâ€.
I have a button that opens a report. When I open the report I want to
minimize the form (not close), and see only the report.
I wrote the following statement:
“Private Sub Print_Contribution_Click()
On Error GoTo Err_Print_Contribution_Click
Dim stDocName As String
stDocName = "IPPM Top Ten Contribution"
DoCmd.OpenReport stDocName, acPreview
DoCmd.Minimize acForm, "CSPC IPPM Contribution"
Exit_Print_Contribution_Click:
Exit Sub
Err_Print_Contribution_Click:
MsgBox Err.DESCRIPTION
Resume Exit_Print_Contribution_Click
End Sub.â€
When I Debug I get the following statement:
“Wrong number of arguments or invalid property assignmentâ€
Please advice.
Thank you,