473,385 Members | 1,536 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Is it possible to insert/remove page break FOR EACH GROUP of a report?

Kat
This is a new one on me...a user wants to select a report then see a
checkbox list of the "groups" to be included in the report. He wants
to turn on/off whether or not to insert a page break before each
group. Any way to do this? If so, please provide a clue as to how.
Thanks, Kat
Nov 13 '05 #1
1 7464
You have 4 options in the Group Header and the Group Footer to "Force New
Page"; None, Before Section, After Section, or Before and After.

To refer to the header/footer in code and set the option try something like
this in the report's Open event.

Me.Section(acGroupLevel1Header).ForceNewPage = 1

The available values are 0-3 and refer to the options in the order they're
listed above.

acGroupLevel1Header = 5
acGroupLevel1Footer = 6
acGroupLevel2Header = 7
acGroupLevel2Footer = 8

If you exceed the number of predefined constants, you can use the actual
section number instead.

--
Wayne Morgan
MS Access MVP
"Kat" <ka**********@comcast.net> wrote in message
news:62**************************@posting.google.c om...
This is a new one on me...a user wants to select a report then see a
checkbox list of the "groups" to be included in the report. He wants
to turn on/off whether or not to insert a page break before each
group. Any way to do this? If so, please provide a clue as to how.
Thanks, Kat

Nov 13 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Andy V | last post by:
Hi. I've got a multi page report of my monthly purchases. I'd like a running total (month to date) at the end of each page and to have that total at the top of the following page. So far all I can...
4
by: Chuck | last post by:
A report has many different groups of multiple pages each. Each group starts on a new page. The report is printed on both sides of the paper. I would like to be able to have each group start on...
1
by: pemigh | last post by:
I have a report with pages breaking in the middle of text box controls. And it's not just on a line-by-line basis, but sometimes (in a situation that I can no longer recreate) just the bottom...
24
by: trint | last post by:
add them into one PrintDocument: PrintDocument pd1 = new PrintDocument(); PrintDocument pd2 = new PrintDocument(); PrintDocument pdCombined = new PrintDocument(); pdCombined = pd1 + pd2;...
1
by: James Wong | last post by:
Dear all, For some reason, I have to write my own code to print a document instead of using report writer. The source is an array with dynamic length. If one page is full, I have to insert a...
0
by: Simon | last post by:
Dear reader, In a report you have the possibility to place an icon "Page break". In case I have a report within the report a sub report and in the sub report the icon "Page break" the page...
4
by: Rico | last post by:
Hello, I'm looking for a way to force a pagebreak in code. I'm having a tough time, the first page formats properly until the condition is met and then forces a new page. The problem is, every...
1
by: bobh | last post by:
Hi All, In AccessXP I have a report which I have a group header/footer called HUB. On change in HUB I want to do a page break, I've found that if I put the page break in the HUB header section...
9
by: magickarle | last post by:
Hi, I have a database in access with the following columns: Day AgentID ManagerID Grade They got information about agents and some grades. I would like to have ONE form with several...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.