Hello,
Here is my situation. I want the report to force a new page once a certain criteria has been met. In this case, the new page is created if the number of records is equal to 26 and the number of records is less than the shared value linenum (Hense, a maximum of 26 lines of detail per page).
Situation A:
recNum = 26 and lineNum = 26
one page prints
Situation B:
recNum = 26 and lineNum = 27
two pages print
Here is my code:
As it stands, I am testing with situation A and two pages print. The second page is essentially blank with the exception of the page header info.
Is my formula incorrect? If so, how do I fix it?
Thanks.
If at first you don't succeed, then sky diving wasn't meant for you!
Here is my situation. I want the report to force a new page once a certain criteria has been met. In this case, the new page is created if the number of records is equal to 26 and the number of records is less than the shared value linenum (Hense, a maximum of 26 lines of detail per page).
Situation A:
recNum = 26 and lineNum = 26
one page prints
Situation B:
recNum = 26 and lineNum = 27
two pages print
Here is my code:
Code:
WhilePrintingRecords;
Shared NumberVar LineNum;
NumberVar recNum;
(recNum=26 AND recNum<LineNum);
As it stands, I am testing with situation A and two pages print. The second page is essentially blank with the exception of the page header info.
Is my formula incorrect? If so, how do I fix it?
Thanks.
If at first you don't succeed, then sky diving wasn't meant for you!