473,671 Members | 2,326 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 7486
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(acGr oupLevel1Header ).ForceNewPage = 1

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

acGroupLevel1He ader = 5
acGroupLevel1Fo oter = 6
acGroupLevel2He ader = 7
acGroupLevel2Fo oter = 8

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

--
Wayne Morgan
MS Access MVP
"Kat" <ka**********@c omcast.net> wrote in message
news:62******** *************** ***@posting.goo gle.com...
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
5193
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 figure out is a grand total at the end of the entire report! Any suggestions? Thanks.
4
4535
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 a right hand page, that is, to be printed on an odd numbered page. something like iif(page mod0 is true then force to next page). All suggestions will be gratefully received. Chuck ....
1
6871
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 portions of a line's letters were showing up at the top of a page. My experiments show that Access will ordinarily break before a text box if the whole thing won't fit, but I haven't been able to find a property that will control this behavior. I...
24
8150
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; pdCombined.Print(); Thanks, Trint
1
5637
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 page break and print a new page to continue. The following code segment is what I'm using right now. My question is how to insert a page break in the middle of the loop since I don't find any method in PrintDocument similar to this purpose.
0
1884
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 break is not working any more. I have tried it in the "Group Header", "Detail", "Group Footer" but it still
4
21570
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 page after that forces a new page after a single record. I'm trying to force the page after 12 records. The code is pretty simple. I have a footer called "BreakFooter" that i have associated with the ID field, so each detail record is unique....
1
2250
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 the first page of the report when printed is blank and if I put the page break in the HUB footer section the last page printed is a blank page. How do I not print blank pages but have a page break on each change in HUB??
9
2170
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 grouping (yearly quarterly and weekly) with the respective average.
0
8390
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8909
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8819
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8667
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6222
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4221
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4399
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2806
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1801
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.