read page number or group in report footer

I

iccsi

I have a text box to print in 2 pages and would like to add a page
break by my self.


I just wonder that can I read page number on format or print event?
If I can do then I am able to add a page break when the text box print
in to pages or I can add a dummy group to group them together on the
same page. The text box in the report footer that I am not sure that I
can add a group at report footer.

Your information is great appreciated,
 
A

Allen Browne

In the Format event of the (Detail?) section, you can read the Page property
of the report, e.g.:
Me.Page

You can also read how far down the page the top of this section will be, as:
Me.Top
The measurement will be in twips, where 1440 twips = 1 inch.

There is a Page Break control in the toolbox. You can add one to your
report, and toggle its Visible property: Visible = True will make a page
break; Visible = False will suppress it.

However, you can't use that technique to put half a text box on one page and
half on the next. The page break control will move the entire section onto
the next page.

If you just want as much of the text as fits on the page and then have the
rest on the next page, just set the section's Keep Together property to No.
 
I

iccsi

In the Format event of the (Detail?) section, you can read the Page property
of the report, e.g.:
    Me.Page

You can also read how far down the page the top of this section will be, as:
    Me.Top
The measurement will be in twips, where 1440 twips = 1 inch.

There is a Page Break control in the toolbox. You can add one to your
report, and toggle its Visible property: Visible = True will make a page
break; Visible = False will suppress it.

However, you can't use that technique to put half a text box on one page and
half on the next. The page break control will move the entire section onto
the next page.

If you just want as much of the text as fits on the page and then have the
rest on the next page, just set the section's Keep Together property to No.

--
Allen Browne - Microsoft MVP.  Perth, Western Australia
Tips for Access users -http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.







- Show quoted text -

Thanks millions,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top