473,394 Members | 1,785 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,394 software developers and data experts.

Sub-report starts on new page

Hi

I have a report containing two sub-reports in the details section.

The first of these contains a list of records, and appears as a
full width blank rectangle, thick enough to contain at least one
record. Auto grow is also active.

However when there are more records than a page can contain,
rather than print an initial portion on current page, the subreport
systematically begins on the following page.

The second sub-report is smaller in size and when required co-
rrectly divides itself between the end of current and beginning of
the following page.
Any ideas ?

Thanks

ysh

Nov 14 '06 #1
7 11944
Check the "Force new Page property of the subreport

"ysh8o1" <ya*********@gmail.comwrote in message
news:11**********************@m73g2000cwd.googlegr oups.com...
Hi

I have a report containing two sub-reports in the details section.

The first of these contains a list of records, and appears as a
full width blank rectangle, thick enough to contain at least one
record. Auto grow is also active.

However when there are more records than a page can contain,
rather than print an initial portion on current page, the subreport
systematically begins on the following page.

The second sub-report is smaller in size and when required co-
rrectly divides itself between the end of current and beginning of
the following page.
Any ideas ?

Thanks

ysh

Nov 14 '06 #2
Hi and thanks for the response

Unfortunately this property is switched off for all sections in the
sub-report

ysh

Nov 14 '06 #3
ysh8o1 wrote:
Hi and thanks for the response

Unfortunately this property is switched off for all sections in the
sub-report

ysh
If "keep together" is set to yes and the subreport is too big to fit on a
single page then it will break to a new page first even though the new page
won't be able to hold the whole thing either.

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com
Nov 14 '06 #4
I think there are only three things that can cause a subreport to move to a
new page.
1. The property has to be set to require it - but you checked that.
2. There is some code in an event of the subform (like i"ntGetVal =
Reports![Sales By
Year].Section(acDetail).ForceNewPage")
or
3. there is a pagebreak inserted on the form.

"ysh8o1" <ya*********@gmail.comwrote in message
news:11**********************@h54g2000cwb.googlegr oups.com...
Hi and thanks for the response

Unfortunately this property is switched off for all sections in the
sub-report

ysh

Nov 14 '06 #5
Thanks for the responses.

I agree with those three possibilities.

And having rechecked everything I decided to create a new report and
sub-report objects
copying over only the fields from original versions.

Unfortunately, I get the same result.
Stumped am I !

I guess I'll have to toy around with the layout(s) until I get a
satisfactory result.

Cheers

ysh

Nov 15 '06 #6

ysh8o1 a écrit :
Hi

I have a report containing two sub-reports in the details section.

The first of these contains a list of records, and appears as a
full width blank rectangle, thick enough to contain at least one
record. Auto grow is also active.

However when there are more records than a page can contain,
rather than print an initial portion on current page, the subreport
systematically begins on the following page.

The second sub-report is smaller in size and when required co-
rrectly divides itself between the end of current and beginning of
the following page.
Any ideas ?

Thanks

ysh
Right, I beginning to think that my data is off !

If I place my report's header fields in a page header, the subreport
(which requires more than a page to print) is correctly printed. If
however I place the header fields in a section header, then the same
subreport begins on the next page.

The first option is fine, except that the fields in the page header
section don't get updated in sync with the data in the details section
(i.e. subreport data) but are 'one record' behind

The second option insures that the header info is correct,
unfortunately the data is printed one page behind !

Sorry if all this seems confusing to you - you should see the mess in
my head right now !

Rgds

ysh

Nov 24 '06 #7
Check the "KeepTogether" setting for your subreport.
If set to true it will start at the top of a page regardless of whether
or not it can fit in a page.
"ysh8o1" <ya*********@gmail.comwrote in message
news:11**********************@l12g2000cwl.googlegr oups.com...

ysh8o1 a écrit :
Hi

I have a report containing two sub-reports in the details section.

The first of these contains a list of records, and appears as a
full width blank rectangle, thick enough to contain at least one
record. Auto grow is also active.

However when there are more records than a page can contain,
rather than print an initial portion on current page, the subreport
systematically begins on the following page.

The second sub-report is smaller in size and when required co-
rrectly divides itself between the end of current and beginning of
the following page.
Any ideas ?

Thanks

ysh
Right, I beginning to think that my data is off !

If I place my report's header fields in a page header, the subreport
(which requires more than a page to print) is correctly printed. If
however I place the header fields in a section header, then the same
subreport begins on the next page.

The first option is fine, except that the fields in the page header
section don't get updated in sync with the data in the details section
(i.e. subreport data) but are 'one record' behind

The second option insures that the header info is correct,
unfortunately the data is printed one page behind !

Sorry if all this seems confusing to you - you should see the mess in
my head right now !

Rgds

ysh
Nov 27 '06 #8

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

Similar topics

5
by: John Dewbert | last post by:
*** post for FREE via your newsreader at post.newsfeed.com *** Hello, I have trouble passing a folder object (from a FileSystemObject) to a sub procedure. Consider the following code: ...
5
by: Colleyville Alan | last post by:
I have a sub that can do two different tasks based on the value of one variable. So I'd like to have two different buttons on the same form run this, but each one setting a flag so that the...
6
by: lenny | last post by:
Hi, I've been trying to use a Sub or Function in VBA to connect to a database, make a query and return the recordset that results from the query. The connection to the database and the query...
10
by: tmaster | last post by:
When I try to dynamically add a second sub menu item to this ContextMenu item, I get an error 'Specified argument was out of the range of valid values'. Private Sub mnuTopics_Show_Select(ByVal...
12
by: Ron | last post by:
Greetings, I am trying to understand the rational for Raising Events instead of just calling a sub. Could someone explain the difference between the following 2 scenarios? Why would I want to...
1
by: dBNovice | last post by:
Please help! I have 3 forms: Task, Subtask, Elements. Elements is a subform of Subtask and Subtask is a subform of Task. I am able to navigate from Task to Subform to Element and from Element to...
5
by: Sharon | last post by:
Hi all. To prevent access to a sub system internal types, is it necessary to create the sub system in a different project, and use the internal access level? Or is there another way that will...
6
by: Bob | last post by:
Hi, I found this code here below (about cartitems and shoppingcart) and I have two questions about sub New(). In the first class CartItem, there is two times sub New(): Public Sub New() End...
6
by: Greg Strong | last post by:
Hello All, Is is possible to use an ADO recordset to populate an unbound continuous Subform? I've done some Googling without much luck, so this maybe impossible, but let me try to explain...
6
by: Thom Little | last post by:
Using C# 3.5 I have a form that calls many other sub-forms. Typically there will be five forms open at the same time. If the main form is closed all the sub forms are also closed. Is there...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.