A
AJ Raiber
I have a command button that is programmed to run reports when clicked. How
can I change the code below to select only the current record for printing?
Private Sub Print_Reports_Click()
On Error GoTo Err_Print_Reports_Click
Dim stDocName1 As String
Dim stDocName2 As String
Dim stDocName3 As String
Dim stDocName4 As String
Dim stDocName5 As String
stDocName1 = "BackgroundInvestigationRequest"
stDocName2 = "Business Rules Pg 3"
stDocName3 = "InprocChecklist"
stDocName4 = "ISO Certification"
stDocName5 = "VA Form 2280a"
DoCmd.OpenReport stDocName1, acNormal
DoCmd.OpenReport stDocName2, acNormal
DoCmd.OpenReport stDocName3, acNormal
DoCmd.OpenReport stDocName4, acNormal
DoCmd.OpenReport stDocName5, acNormal
Exit_Print_Reports_Click:
Exit Sub
Err_Print_Reports_Click:
MsgBox Err.Description
Resume Exit_Print_Reports_Click
End Sub
can I change the code below to select only the current record for printing?
Private Sub Print_Reports_Click()
On Error GoTo Err_Print_Reports_Click
Dim stDocName1 As String
Dim stDocName2 As String
Dim stDocName3 As String
Dim stDocName4 As String
Dim stDocName5 As String
stDocName1 = "BackgroundInvestigationRequest"
stDocName2 = "Business Rules Pg 3"
stDocName3 = "InprocChecklist"
stDocName4 = "ISO Certification"
stDocName5 = "VA Form 2280a"
DoCmd.OpenReport stDocName1, acNormal
DoCmd.OpenReport stDocName2, acNormal
DoCmd.OpenReport stDocName3, acNormal
DoCmd.OpenReport stDocName4, acNormal
DoCmd.OpenReport stDocName5, acNormal
Exit_Print_Reports_Click:
Exit Sub
Err_Print_Reports_Click:
MsgBox Err.Description
Resume Exit_Print_Reports_Click
End Sub