Large gap between details and footer (1 Viewer)

tmyers

Well-known member
Local time
Yesterday, 19:40
Joined
Sep 8, 2020
Messages
1,090
I have been fighting with this off and on for awhile, but I am finally throwing in the towel on it.
Capture.PNG

How can I get that unsightly large gap to "go away" Essentially after the Grand Total appears, I then immediately want my report footer to start. As it is right now, it gets forced to another page. I have the can grow/shrink properties set. Keep together is disabled etc.
 

Minty

AWF VIP
Local time
Today, 00:40
Joined
Jul 26, 2013
Messages
10,371
Does it have force new page set to yes ?

And the page footer will always be at the bottom, unless there is a report footer.
 

tmyers

Well-known member
Local time
Yesterday, 19:40
Joined
Sep 8, 2020
Messages
1,090
Force new page is currently set to none on both details and my group footer as well as the report footer.
Currently the only thing in the page footer is the date/time/page number.

The report footer has all the company' terms and such.

I did try removing page footer to see what it would do, but the gap remained.
 

Minty

AWF VIP
Local time
Today, 00:40
Joined
Jul 26, 2013
Messages
10,371
Is your footer a great big single lump of text in one control or label?
If so it will nearly always start on a new page if it can't fit on the current one.

Try breaking it down into smaller chunks.
 

onur_can

Active member
Local time
Yesterday, 16:40
Joined
Oct 4, 2015
Messages
180
Use page footer instead of report footer.
 

theDBguy

I’m here to help
Staff member
Local time
Yesterday, 16:40
Joined
Oct 29, 2018
Messages
21,467
Can you post a screenshot of your report's design view? I want to see where the Grand Total, page number, date, and time are placed on the report sections.
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 07:40
Joined
May 7, 2009
Messages
19,230
there are 2 techniques (hacks) that are used on this demo.
report1 put the "grand total" to the "page footer" and make it visible
on the "last page" of the report.

report2 is more elegant.
you will notice that on "page 1" there are 26 records displayed.
so, you calculate the last page, "number of dummy lines" to produce
a total 25 (26 minus 1) lines.
then add the "grand total" (the 26th line).
it uses Union query.
 

Attachments

  • reportFooter.zip
    109.2 KB · Views: 430

tmyers

Well-known member
Local time
Yesterday, 19:40
Joined
Sep 8, 2020
Messages
1,090
Is your footer a great big single lump of text in one control or label?
If so it will nearly always start on a new page if it can't fit on the current one.

Try breaking it down into smaller chunks.
I do have them broken out into multiple controls. Each "term" is its own control.
 

tmyers

Well-known member
Local time
Yesterday, 19:40
Joined
Sep 8, 2020
Messages
1,090
Does that show what you were after DBGuy?
 

Minty

AWF VIP
Local time
Today, 00:40
Joined
Jul 26, 2013
Messages
10,371
Is your clarification section (it's slighty unusual to have a sub report in a report footer) set to can shrink/can grow YES, and if it is, make it really small - literally 1 pixel high.

It will grow to accommodate any data if present.
 

tmyers

Well-known member
Local time
Yesterday, 19:40
Joined
Sep 8, 2020
Messages
1,090
Is your clarification section (it's slighty unusual to have a sub report in a report footer) set to can shrink/can grow YES, and if it is, make it really small - literally 1 pixel high.

It will grow to accommodate any data if present.
Didn't think of that. I just changed that but for the record, the gap remains.
That sub-report just contains chosen clarifications that are specific to the particular job being quoted. So not every job is the same. Some need the clarifications/extra terms.
 

AccessBlaster

Registered User.
Local time
Yesterday, 16:40
Joined
May 22, 2010
Messages
5,940
Recreate the report using the report wizard, answer all the prompts. After the report has finished tweak it in design view. Sometimes the wizard adds functionality that's not obvious.
 

tmyers

Well-known member
Local time
Yesterday, 19:40
Joined
Sep 8, 2020
Messages
1,090
Recreate the report using the report wizard, answer all the prompts. After the report has finished tweak it in design view. Sometimes the wizard adds functionality that's not obvious.
The report was initially made via the wizard. I added the sub-report and some other controls however as well as the grouping to give me the Grand Total.
 

theDBguy

I’m here to help
Staff member
Local time
Yesterday, 16:40
Joined
Oct 29, 2018
Messages
21,467
Does that show what you were after DBGuy?
Hi. Yes, it does. However, re-reading your original post,
Essentially after the Grand Total appears, I then immediately want my report footer to start. As it is right now, it gets forced to another page.
I think the report footer being a subform may have something to do with it.

So, just as a test, could you replace the report footer with a simple text to see if it goes up or still show up in a new page?

Just a thought...
 

tmyers

Well-known member
Local time
Yesterday, 19:40
Joined
Sep 8, 2020
Messages
1,090
Hi. Yes, it does. However, re-reading your original post,

I think the report footer being a subform may have something to do with it.

So, just as a test, could you replace the report footer with a simple text to see if it goes up or still show up in a new page?

Just a thought...
I just quickly tried this.
I deleted out the sub-report and only left my labels with their text in. Same result. All of it was forced to a new page after the total. I also did a quick test and removed the page footer. No change there either.
 

tmyers

Well-known member
Local time
Yesterday, 19:40
Joined
Sep 8, 2020
Messages
1,090
there are 2 techniques (hacks) that are used on this demo.
report1 put the "grand total" to the "page footer" and make it visible
on the "last page" of the report.

report2 is more elegant.
you will notice that on "page 1" there are 26 records displayed.
so, you calculate the last page, "number of dummy lines" to produce
a total 25 (26 minus 1) lines.
then add the "grand total" (the 26th line).
it uses Union query.
@arnelgp I had completely forgotten that I downloaded your sample. How did you get that grand total in rpt2? I tried forever to figure that out to no avail.

Edit:
Found it in the on load and am looking at that now. It seems much more elegant then the grouping method I am using.
 

theDBguy

I’m here to help
Staff member
Local time
Yesterday, 16:40
Joined
Oct 29, 2018
Messages
21,467
I just quickly tried this.
I deleted out the sub-report and only left my labels with their text in. Same result. All of it was forced to a new page after the total. I also did a quick test and removed the page footer. No change there either.
Sounds like there may be either a page break or a force a new page setting in there somewhere. If you can post a sample copy of the report, we could try to take a look for you.
 

tmyers

Well-known member
Local time
Yesterday, 19:40
Joined
Sep 8, 2020
Messages
1,090
Sounds like there may be either a page break or a force a new page setting in there somewhere. If you can post a sample copy of the report, we could try to take a look for you.
Sure thing! I am retweaking to implement the grand total code provided by arnelgp in their example then I should be able to.
 

tmyers

Well-known member
Local time
Yesterday, 19:40
Joined
Sep 8, 2020
Messages
1,090
In tinkering around, apparently it was the auto resize property on the report itself. I checked that to no and magically everything "smooshed" together how I was after.

Weird that that property would cause that to happen. Doesn't seem like it should.
 

Users who are viewing this thread

Top Bottom