Is it possible to do some code within the Detail_Format then have it print once that code is processed?
Explanation:
I have a half page report. I duplicated it so I could have 2 on one page. I then made a box to cover the second have if I didn't have to print 2 reports.
Each report has the same fields. The only difference is there is a "Serial" box that increases upto the total number of Parts. If she has 5 parts, then there will be 5 half page documents, Starting with Page 1 Serial 1 ending with Page 5 Serial 5.
I have written the code so it processes one page and then *should* print that one page, then it will make the 2nd page... etc until the Serial = QTY at which point it closes.
Here is the code:
DoCmd.PrintOut just prints the main form not the Report.
Could i open the report in ACNormal and then just have it pause after each page is developed?
Explanation:
I have a half page report. I duplicated it so I could have 2 on one page. I then made a box to cover the second have if I didn't have to print 2 reports.
Each report has the same fields. The only difference is there is a "Serial" box that increases upto the total number of Parts. If she has 5 parts, then there will be 5 half page documents, Starting with Page 1 Serial 1 ending with Page 5 Serial 5.
I have written the code so it processes one page and then *should* print that one page, then it will make the 2nd page... etc until the Serial = QTY at which point it closes.
Here is the code:
Code:
If Qty <> Serial Then
For x = 1 To Qty
Cover.Visible = True
txtSupplier.Caption = "Total Quality Instrumentation"
txtPartName.Caption = Part_Name
txtPartNo.Caption = PartNumber
txtDLS.Caption = DLS
txtPLS.Caption = PLS
txtDrawing.Caption = SubmissionDate
txtST.Caption = "R"
txtRev.Caption = Rev
txtPONumber.Caption = Purchase
txtProject.Caption = Program
txtSerial.Caption = Serial
Serial = Serial + 1
If Serial = Qty Then
x = Qty
ElseIf Serial <> Qty Then
Cover.Visible = False
txtSupplier2.Caption = "Total Quality Instrumentation"
txtPartName2.Caption = Part_Name
txtPartNo2.Caption = PartNumber
txtDLS2.Caption = DLS
txtPLS2.Caption = PLS
txtDrawing2.Caption = SubmissionDate
txtSt2.Caption = "R"
txtRev2.Caption = Rev
txtPoNumber2.Caption = Purchase
txtProject2.Caption = Program
txtSerial2.Caption = Serial
Serial = Serial + 1
If Serial = Qty Then
x = Qty
End If
End If
DoCmd.PrintOut
Next x
End If
DoCmd.PrintOut just prints the main form not the Report.
Could i open the report in ACNormal and then just have it pause after each page is developed?