View Full Version : Force page break on change of field


swamprat96
03-04-2010, 01:35 PM
I have a report that sorts products by category. I want to force a page break when the category changes. The category field is just a text field. I realise that I need to use the Visible property of Page break on an event but I can't remember/work out how to write an event that recognises a change in the text field?
TIA
Tony

vbaInet
03-04-2010, 01:38 PM
Create a Group Header for Category and set the 'Force New Page' property to 'Before Section'.

GaryPanic
03-04-2010, 01:52 PM
just had the same thing myself ...took me 20 mins to solve (and i was using the bloody wizard as well - with groupings- had to read the bloody book- that was no help -so back to logic and looked at all of the properties evenywhere -
found it in the end - felt a bit stupid - but it should of word on the wizard .. what gives ...

vbaInet
03-04-2010, 01:57 PM
just had the same thing myself ...took me 20 mins to solve (and i was using the bloody wizard as well - with groupings- had to read the bloody book- that was no help -so back to logic and looked at all of the properties evenywhere -
found it in the end - felt a bit stupid - but it should of word on the wizard .. what gives ...
Happens to the best of us doesn't it Gary ;)

swamprat96
03-04-2010, 02:21 PM
Thanks - saved me hours of head scratching

vbaInet
03-04-2010, 02:23 PM
Glad to have helped.

Welcome to AWF by the way.