(Msg. 2) Posted: Sat Jan 05, 2008 11:48 am
Post subject: Re: Force a page break in code [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
Bill wrote:
>I need to force a page break in the Detail_OnFormat
>Event when a value changes. How do I do that?
It's better to create a group on the field with the value.
then you can use the ForceNewPage property on the group
header section.
(Msg. 3) Posted: Sat Jan 05, 2008 11:48 am
Post subject: Re: Force a page break in code [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
Marsh,
I can group on the field and I see the ForceNewPage
property, but it's not clear what event to use to
enable the ForceNewPage property ONLY the first
time the group field changes. I.e., I don't want a page
break to be enabled the first time the group header
prints, only on subsequent encounters.
Bill
"Marshall Barton" <marshbarton.TakeThisOut@wowway.com> wrote in message
news:jkgvn3hd6hbmrpbquu9tjs2761sagl0gjn@4ax.com...
> Bill wrote:
>
>>I need to force a page break in the Detail_OnFormat
>>Event when a value changes. How do I do that?
>
>
> It's better to create a group on the field with the value.
> then you can use the ForceNewPage property on the group
> header section.
>
> --
> Marsh
> MVP [MS Access]
(Msg. 4) Posted: Sat Jan 05, 2008 3:06 pm
Post subject: Re: Force a page break in code [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
I'm not sure I understand what you are saying. With the
group header section's ForceNewPage property set to Before
Section, the first instance of the group header will not
eject a new page unless there is a visible report header. If
you want the report header on the same page as the first
group, it seems inconsistent with starting each group on its
own page.
If that is what you want, try setting the property to None
in design view and reset it in the header section's Print
event procedure:
Me.Section(5).ForceNewPage = 1
--
Marsh
MVP [MS Access]
Bill wrote:
>I can group on the field and I see the ForceNewPage
>property, but it's not clear what event to use to
>enable the ForceNewPage property ONLY the first
>time the group field changes. I.e., I don't want a page
>break to be enabled the first time the group header
>prints, only on subsequent encounters.
>
>
>"Marshall Barton" wrote
>> It's better to create a group on the field with the value.
>> then you can use the ForceNewPage property on the group
>> header section.
>>
>>
>> Bill wrote:
>>>I need to force a page break in the Detail_OnFormat
>>>Event when a value changes. How do I do that?
(Msg. 5) Posted: Sat Jan 05, 2008 4:00 pm
Post subject: Re: Force a page break in code [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
Bill wrote:
> I need to force a page break in the Detail_OnFormat
> Event when a value changes. How do I do that?
>
> Thanks,
> Bill
Insert a PageBreak control from the ToolBox bar at the desired location. Even
though such a control is never "visible" other than in design view they do still
have a Visible property. That property effectively turns on and off the
PageBreak so you can minipulate that in your code.
--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com
(Msg. 6) Posted: Sun Jan 06, 2008 9:35 am
Post subject: Re: Force a page break in code [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
AH! You wrote:
"With the group header section's ForceNewPage property
set to Before Section, the first instance of the group header
will not eject a new page unless there is a visible report header."
Which is exactly what I was trying to accomplish.
Thanks,
Bill
"Marshall Barton" <marshbarton DeleteThis @wowway.com> wrote in message
news:7irvn3h3si3s60o7djcanpgl2gbd0rd2d2@4ax.com...
> I'm not sure I understand what you are saying. With the
> group header section's ForceNewPage property set to Before
> Section, the first instance of the group header will not
> eject a new page unless there is a visible report header. If
> you want the report header on the same page as the first
> group, it seems inconsistent with starting each group on its
> own page.
>
> If that is what you want, try setting the property to None
> in design view and reset it in the header section's Print
> event procedure:
> Me.Section(5).ForceNewPage = 1
> --
> Marsh
> MVP [MS Access]
>
>
> Bill wrote:
>>I can group on the field and I see the ForceNewPage
>>property, but it's not clear what event to use to
>>enable the ForceNewPage property ONLY the first
>>time the group field changes. I.e., I don't want a page
>>break to be enabled the first time the group header
>>prints, only on subsequent encounters.
>>
>>
>>"Marshall Barton" wrote
>>> It's better to create a group on the field with the value.
>>> then you can use the ForceNewPage property on the group
>>> header section.
>>>
>>>
>>> Bill wrote:
>>>>I need to force a page break in the Detail_OnFormat
>>>>Event when a value changes. How do I do that?
>
(Msg. 7) Posted: Wed Oct 28, 2009 12:28 pm
Post subject: Re: Force a page break in code [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
On Sat, 05 Jan 2008 15:06:54 -0600, Marshall Barton
<marshbarton.DeleteThis@wowway.com> wrote:
>I'm not sure I understand what you are saying. With the
>group header section's ForceNewPage property set to Before
>Section, the first instance of the group header will not
>eject a new page unless there is a visible report header.
I'm not the OP, but the above *seems* backwards to me.
Wouldn't it be "if there is a visible report header"? Or is
that just the way I'd *like* it to be? ;-0
> If you want the report header on the same page as the first
>group, it seems inconsistent with starting each group on its
>own page.
Not to me--I think the first group, under the report title
and such, which don't take up much room on the page, and
then breaking pages for each group after that is quite
reasonable. Or have I misinterpreted?
>If that is what you want, try setting the property to None
>in design view and reset it in the header section's Print
>event procedure:
All times are: Eastern Time (US & Canada) (change)
Page 1 of 1
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum