A
ap19
I have the following code and I am trying to loop so that all records get
printed. Currently this only prints the first record and stops. Any
suggestions how I can loop through this sequence to print all records...THANKS
Dim stDocName As String
stDocName = "rptL2005_02"
DoCmd.OpenReport stDocName, acPreview
DoCmd.SelectObject acReport, "rptL2005_02", True
DoCmd.PrintOut acPages, 1, 2
stDocName = "rptT2005_05"
DoCmd.OpenReport stDocName, acPreview
DoCmd.SelectObject acReport, "rptt2005_05", True
DoCmd.PrintOut acPages, 1, 1
printed. Currently this only prints the first record and stops. Any
suggestions how I can loop through this sequence to print all records...THANKS
Dim stDocName As String
stDocName = "rptL2005_02"
DoCmd.OpenReport stDocName, acPreview
DoCmd.SelectObject acReport, "rptL2005_02", True
DoCmd.PrintOut acPages, 1, 2
stDocName = "rptT2005_05"
DoCmd.OpenReport stDocName, acPreview
DoCmd.SelectObject acReport, "rptt2005_05", True
DoCmd.PrintOut acPages, 1, 1