Hi,
I'm looking for some help on showing a list of reports with the click event procedure of a Command Button.
Code Used
rivate Sub Preview_Report_Click()
On Error GoTo Err_Preview_Report_Click
Dim stDocName As String
stDocName = "R-Equipment List"
DoCmd.OpenReport stDocName, acPreview
Exit_Command130Preview_Report_Click:
Exit Sub
Err_Command130Preview_Report_Click:
MsgBox Err.Description
Resume Exit_Command130Preview_Report_Click
End Sub
I'm looking for some help on showing a list of reports with the click event procedure of a Command Button.
Code Used
On Error GoTo Err_Preview_Report_Click
Dim stDocName As String
stDocName = "R-Equipment List"
DoCmd.OpenReport stDocName, acPreview
Exit_Command130Preview_Report_Click:
Exit Sub
Err_Command130Preview_Report_Click:
MsgBox Err.Description
Resume Exit_Command130Preview_Report_Click
End Sub