I tried putting the closing code in there, same thing still happens unfortunately.
Check the reports Filter property and FilterOn property see what they are saying are they blank?
I have the subform (which the recordset is based from) filtered to only show the records for the current date, so the filteron property is true and the filter property is being used. The recordset only contains these items though, and the loop is hitting each item correctly without that code. (I tested having a messagebox appear with each id# and it works fine)
Is there any other methods for printing a report? I tried:
- DoCmd.PrintOut acPrintAll
but that just prints a screenshot of the form. It will send one print item for each recordset item, and show the messageboxes mentioned above for testing with each id#, so that part is working correctly in the loop.
I see theres a "DoCmd.RunCommand acCmdPrint" could this be used?