Hello All. I have 3 reports that I print on a regular basis. I want to set these to Loop as many times as a table with a "QTY" field says they need to for that shipment. I have a report that is run from a query that filters for the shipment and has the "Job Number" and "QTY" fields. The code I have prints all 3 reports with one button but I need to look at the report to tell it how many of each to print along with entering the "Job Number" every time. The code I use now is as follows:
Private Sub Command447_Click()
On Error GoTo Err_Ctl5_Click
Dim stDocName As String
stDocName = "Record of Accomplishment"
DoCmd.OpenReport stDocName, acNormal
stDocName = "Dimesional Inspection Form"
DoCmd.OpenReport stDocName, acNormal
stDocName = "Assembly Drawing"
DoCmd.OpenReport stDocName, acNormal
Exit_Ctl5_Click:
Exit Sub
Err_Ctl5_Click:
MsgBox Err.Description
Resume Exit_Ctl5_Click
End Sub