-
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
![]() |
There are isolated problems with current patches, but they are well-known and documented on this site. |
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
-
.NET 8.0 Desktop Runtime (v8.0.16) – Windows x86 Installer
by
WSmeyerbos
7 hours, 21 minutes ago -
Neowin poll : What do you plan to do on Windows 10 EOS
by
Alex5723
3 hours, 5 minutes ago -
May 31, 2025—KB5062170 (OS Builds 22621.5415 and 22631.5415 Out-of-band
by
Alex5723
5 hours, 55 minutes ago -
Discover the Best AI Tools for Everything
by
Alex5723
6 hours, 4 minutes ago -
Edge Seems To Be Gaining Weight
by
bbearren
6 hours, 47 minutes ago -
Rufus is available from the MSFT Store
by
PL1
4 hours, 15 minutes ago -
Microsoft : Ending USB-C® Port Confusion
by
Alex5723
1 day, 7 hours ago -
KB5061768 update for Intel vPro processor
by
drmark
13 hours, 31 minutes ago -
Outlook 365 classic has exhausted all shared resources
by
drmark
9 hours, 42 minutes ago -
My Simple Word 2010 Macro Is Not Working
by
mbennett555
1 day, 2 hours ago -
Office gets current release
by
Susan Bradley
1 day, 5 hours ago -
FBI: Still Using One of These Old Routers? It’s Vulnerable to Hackers
by
Alex5723
2 days, 19 hours ago -
Windows AI Local Only no NPU required!
by
RetiredGeek
2 days, 4 hours ago -
Stop the OneDrive defaults
by
CWBillow
2 days, 20 hours ago -
Windows 11 Insider Preview build 27868 released to Canary
by
joep517
3 days, 6 hours ago -
X Suspends Encrypted DMs
by
Alex5723
3 days, 8 hours ago -
WSJ : My Robot and Me AI generated movie
by
Alex5723
3 days, 8 hours ago -
Botnet hacks 9,000+ ASUS routers to add persistent SSH backdoor
by
Alex5723
3 days, 9 hours ago -
OpenAI model sabotages shutdown code
by
Cybertooth
3 days, 10 hours ago -
Backup and access old e-mails after company e-mail address is terminated
by
M W Leijendekker
2 days, 22 hours ago -
Enabling Secureboot
by
ITguy
3 days, 5 hours ago -
Windows hosting exposes additional bugs
by
Susan Bradley
3 days, 17 hours ago -
No more rounded corners??
by
CWBillow
3 days, 13 hours ago -
Android 15 and IPV6
by
Win7and10
3 days, 3 hours ago -
KB5058405 might fail to install with recovery error 0xc0000098 in ACPI.sys
by
Susan Bradley
4 days, 6 hours ago -
T-Mobile’s T-Life App has a “Screen Recording Tool” Turned on
by
Alex5723
4 days, 8 hours ago -
Windows 11 Insider Preview Build 26100.4202 (24H2) released to Release Preview
by
joep517
4 days, 3 hours ago -
Windows Update orchestration platform to update all software
by
Alex5723
4 days, 16 hours ago -
May preview updates
by
Susan Bradley
4 days, 3 hours ago -
Microsoft releases KB5061977 Windows 11 24H2, Server 2025 emergency out of band
by
Alex5723
3 days, 19 hours ago
Recent blog posts
Key Links
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
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.