-
WSBodders
AskWoody LoungerHans
Thanks for bearing with me. Each subreport has its own total line which will appear if the subreport appears. If either (or both) of the subreports appear then an overall total line is needed on the main report adding up the total lines from the subreports. I don’t want this overall total line to appear on its own on a page, if it can be avoided. The overall totals line cannot go in either of the subreports because there is no guarantee that they will appear.
Bodders
-
WSBodders
AskWoody LoungerHans
Thanks for bearing with me. Each subreport has its own total line which will appear if the subreport appears. If either (or both) of the subreports appear then an overall total line is needed on the main report adding up the total lines from the subreports. I don’t want this overall total line to appear on its own on a page, if it can be avoided. The overall totals line cannot go in either of the subreports because there is no guarantee that they will appear.
Bodders
-
WSBodders
AskWoody LoungerI’m sure it’s not you Hans – more the way I explained it.
OK – the main report has some detail followed by 2 subreports, both of which are optional. If either of them have data, they appear, if not, they don’t. If either of them does appear then a totals line is needed on the main report which gives totals for the subreports. The totals line can refer to either or both subreports, depending on whether they appear or not. If there is not enough space on the page the totals line appears – on its own – on the next page. This is what I want to avoid if at all possible. What I would like is for the second subreport to go together on the second page with the totals.
I know it’s all a bit tricky – I just wanted to find out if it could be done at all.
-
WSBodders
AskWoody LoungerI’m sure it’s not you Hans – more the way I explained it.
OK – the main report has some detail followed by 2 subreports, both of which are optional. If either of them have data, they appear, if not, they don’t. If either of them does appear then a totals line is needed on the main report which gives totals for the subreports. The totals line can refer to either or both subreports, depending on whether they appear or not. If there is not enough space on the page the totals line appears – on its own – on the next page. This is what I want to avoid if at all possible. What I would like is for the second subreport to go together on the second page with the totals.
I know it’s all a bit tricky – I just wanted to find out if it could be done at all.
-
WSBodders
AskWoody LoungerHans
This is a good idea, but did not work when I tried it. Both subreports can grow to most of a page, and so the whole section would then cover mutliple pages, and not guarantee that the total line & Product subreport would be on the same page.
Bodders
-
WSBodders
AskWoody LoungerHans
This is a good idea, but did not work when I tried it. Both subreports can grow to most of a page, and so the whole section would then cover mutliple pages, and not guarantee that the total line & Product subreport would be on the same page.
Bodders
-
WSBodders
AskWoody LoungerHans
They can both grow and shrink.
-
WSBodders
AskWoody LoungerHans
They can both grow and shrink.
-
WSBodders
AskWoody LoungerHans
Thank you again. I am using code triggered on the form’s Load event to set the ColumnWidth property (which is only accessible in VBA) for the controls.
Nick
-
WSBodders
AskWoody LoungerHans
Thank you again. I am using code triggered on the form’s Load event to set the ColumnWidth property (which is only accessible in VBA) for the controls.
Nick
-
WSBodders
AskWoody LoungerHans
Thanks for that. As you say, this is indeed a tricky one. What complicates it even more is that this is an Access front-end, sitting on a SQL Server database. So there are no Access tables, hence no fields, hence no Columnwidth properties to be accessed – is that right ?
I think I might just have to use the old ‘best visual fit’ method’ & hope no one can ‘spot the joins’
Nick
-
WSBodders
AskWoody LoungerHans
Thanks for that. As you say, this is indeed a tricky one. What complicates it even more is that this is an Access front-end, sitting on a SQL Server database. So there are no Access tables, hence no fields, hence no Columnwidth properties to be accessed – is that right ?
I think I might just have to use the old ‘best visual fit’ method’ & hope no one can ‘spot the joins’
Nick
-
WSBodders
AskWoody LoungerHans
Many thanks for that. It did not quite fit the bill, but I managed to find the answer in Stan Leszynski’s wonderful book ‘Access 97 Expert Solutions’. You have to set up a dummy group header section in the subreport with the column headings in, and a blank Report Header section. It then repeats the headings based on the page size, regardless of the number of records.
Every serious Access developer should either have or read this book – there is so much good information in there, IMHO.
Thanks again
Nick
-
WSBodders
AskWoody LoungerHans
Many thanks for that. It did not quite fit the bill, but I managed to find the answer in Stan Leszynski’s wonderful book ‘Access 97 Expert Solutions’. You have to set up a dummy group header section in the subreport with the column headings in, and a blank Report Header section. It then repeats the headings based on the page size, regardless of the number of records.
Every serious Access developer should either have or read this book – there is so much good information in there, IMHO.
Thanks again
Nick
-
WSBodders
AskWoody LoungerMark
That is exactly what I wanted to know – sorry for the delay in replying.
Nick
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Which antivirus apps and VPNs are the most secure in 2025?
by
B. Livingston
1 hour, 20 minutes ago -
Stay connected anywhere
by
Peter Deegan
1 hour, 21 minutes ago -
Copilot, under the table
by
Will Fastie
1 hour, 22 minutes ago -
The Windows experience
by
Will Fastie
12 minutes ago -
A tale of two operating systems
by
Susan Bradley
7 minutes ago -
Microsoft : Resolving Blue Screen errors in Windows
by
Alex5723
3 hours, 28 minutes ago -
Where’s the cache today?
by
Up2you2
18 hours, 48 minutes ago -
Ascension says recent data breach affects over 430,000 patients
by
Nibbled To Death By Ducks
11 hours, 34 minutes ago -
Nintendo Switch 2 has a remote killing switch
by
Alex5723
2 hours, 33 minutes ago -
Blocking Search (on task bar) from going to web
by
HenryW
19 hours, 30 minutes ago -
Windows 10: Microsoft 365 Apps will be supported up to Oct. 10 2028
by
Alex5723
1 day, 12 hours ago -
Add or Remove “Ask Copilot” Context Menu in Windows 11 and 10
by
Alex5723
1 day, 12 hours ago -
regarding april update and may update
by
heybengbeng
1 day, 13 hours ago -
MS Passkey
by
pmruzicka
15 hours, 35 minutes ago -
Can’t make Opera my default browser
by
bmeacham
1 day, 21 hours ago -
*Some settings are managed by your organization
by
rlowe44
1 day, 8 hours ago -
Formatting of “Forward”ed e-mails
by
Scott Mills
1 day, 20 hours ago -
SmartSwitch PC Updates will only be supported through the MS Store Going Forward
by
PL1
2 days, 15 hours ago -
CISA warns of hackers targeting critical oil infrastructure
by
Nibbled To Death By Ducks
3 days ago -
AI slop
by
Susan Bradley
18 hours, 50 minutes ago -
Chrome : Using AI with Enhanced Protection mode
by
Alex5723
3 days, 2 hours ago -
Two blank icons
by
CR2
10 hours, 22 minutes ago -
Documents, Pictures, Desktop on OneDrive in Windows 11
by
ThePhoenix
12 hours, 20 minutes ago -
End of 10
by
Alex5723
3 days, 13 hours ago -
Single account cannot access printer’s automatic duplex functionality
by
Bruce
2 days, 11 hours ago -
test post
by
gtd12345
3 days, 19 hours ago -
Privacy and the Real ID
by
Susan Bradley
3 days, 9 hours ago -
MS-DEFCON 2: Deferring that upgrade
by
Susan Bradley
1 day, 12 hours ago -
Cant log on to oldergeeks.Com
by
WSJonharnew
4 days ago -
Upgrading from Win 10
by
WSjcgc50
2 days, 11 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.