Back in December I thought I had this solved. The contributed solutions work well except that in the final DB the reports print based on parameter queries. Occasionally this results in a single record. My dilemma is that we need the resulting sign-in sheet even if it just has one record printed on it.
What I am having difficulty with is that while it will print the single record it does not pad the sheet with blank rows unless there are 2 or more records in the query. I have attached my test DB with additional reports based on a query that provides only one record. Both the original report and my new problem report are called by the form "frmTestReports." On the form the button "Preview: PD-Sign-in Sheets 2" is the one that does not format correctly. Sheet 2 should look like sheet 1 except that sheet 2 has only one record. Through trial and error I have narrowed down the problem to Report2's VBA code where it resets the iLine counter to 0 when on the first record. How do I get the code to get out of this apparent loop since it only has one record and allow the report to fill in the missing lines with blanks?
What I am having difficulty with is that while it will print the single record it does not pad the sheet with blank rows unless there are 2 or more records in the query. I have attached my test DB with additional reports based on a query that provides only one record. Both the original report and my new problem report are called by the form "frmTestReports." On the form the button "Preview: PD-Sign-in Sheets 2" is the one that does not format correctly. Sheet 2 should look like sheet 1 except that sheet 2 has only one record. Through trial and error I have narrowed down the problem to Report2's VBA code where it resets the iLine counter to 0 when on the first record. How do I get the code to get out of this apparent loop since it only has one record and allow the report to fill in the missing lines with blanks?