Link to home
Start Free TrialLog in
Avatar of tonikaram
tonikaram

asked on

conditional page break, based on DATA

All,

I would like my reports to start a new page if the field "week number" has changed. A week can have many records (each containing the field "week number") and some weeks contain only one record.
so I would like the report to start on a new page whenever the week number has changed to a new value.
this makes the conditional macro completely useless since the condition has no "previous row" option. only conditions available are if week number = 30 etc, but not if week number changed from previous row...

anyone can help?
ASKER CERTIFIED SOLUTION
Avatar of dbase118
dbase118
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi tonikaram,

You can add a groupheader to your report that groups on the week field. Then in the properties of that groupheader in the format tab, you can specify that you want to "Force new page" " before section".
And it's all done

Regards
sorry dbase118,

The darn thing didn't show your comment prior to me submitting mine.

regards
no problem...2 experts are better than one
Another solution is to add a pagebreak control set it's visible prop to False.
Then use VBA to check if the value has changed and set it to visible whenever that has happend.

..but i guess the solution suggested is simpler..

perove