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

Keep together


Hi
For reporting grades and comments about students, I use one subreport per
subject. This includes a number of text boxes, some containing numerical
data, but one containing a textual report. Depending on how much is
written, sometime there are three on a page, sometimes two etc. What I
cannot seem to do is to get it to 'not start a report for a subject unless
it can fit it on a page'. The keep together option seem to have no effect
in this case. I feel I want to put an elastice band round the various
fields, but there is no 'ealstic band option!!
Thanks in advance
Nov 13 '05 #1
2 3913
Put each of your subreports into a different section on the main report.

1. Open the main report in design view.

2. Open the Sorting and Grouping dialog.

3. Select the primary key field (probably StudentID).

4. In the lower pane, set Yes for both Group Header and Group Footer.
Access adds 2 new sections to the report.

5. Move the first subreport into the StudentID Group Header.
Move the last subreport into the StudentID Group Footer.
Leave the middle one in the Detail section.

Make sure the Keep Together is Yes for the 3 sections. Access won't start
the new section unless it will all fit on the page.

If necessary, you can add the StudentID again on the 2nd row of the
Sortin'n'Grouping box to get more group header/footers sections for your
subreports.
There is a design issue here that really bothers me though: you should not
run into this issue if you have a Student table, a Subject table, and a
junction table betweeen them. More info:
Relationships between Tables (School Grades example)
at:
http://members.iinet.net.au/~allenbrowne/casu-06.html

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"John M" <jo**@jmawer.demon.co.uk> wrote in message
news:cs*******************@news.demon.co.uk...

For reporting grades and comments about students, I use one subreport per
subject. This includes a number of text boxes, some containing numerical
data, but one containing a textual report. Depending on how much is
written, sometime there are three on a page, sometimes two etc. What I
cannot seem to do is to get it to 'not start a report for a subject unless
it can fit it on a page'. The keep together option seem to have no effect
in this case. I feel I want to put an elastice band round the various
fields, but there is no 'ealstic band option!!
Thanks in advance

Nov 13 '05 #2
Excellent, thanks

In answer to your design issue point ... I think my way may be ok really!
All the basic data can be cut an pasted from out School information
management system (which does not have a decent reporting package). By
basic I mean personal details, classes, and teachers of those classes. I
create tables for each 'block' (this usually equate to subject). These
contain the reports, grades etc, and link to the basic data via student ID.
The fields are common to all of these so not only do I type no names, but
all the same forms reports code etc can be used. It all comes together
through a report. (Even this I ought to be able to get to reuse the same
one but fill it with different blocks. (I guess I've answered your point as
I'm not that confident that it is a good design!)

PS I gather it's poor form to ask of two Newsgroups, but I only just thought
of using the specific Reports Newsgroup after posting this.
"Allen Browne" <Al*********@SeeSig.Invalid> wrote in message
news:41***********************@per-qv1-newsreader-01.iinet.net.au...
Put each of your subreports into a different section on the main report.

1. Open the main report in design view.

2. Open the Sorting and Grouping dialog.

3. Select the primary key field (probably StudentID).

4. In the lower pane, set Yes for both Group Header and Group Footer.
Access adds 2 new sections to the report.

5. Move the first subreport into the StudentID Group Header.
Move the last subreport into the StudentID Group Footer.
Leave the middle one in the Detail section.

Make sure the Keep Together is Yes for the 3 sections. Access won't start
the new section unless it will all fit on the page.

If necessary, you can add the StudentID again on the 2nd row of the
Sortin'n'Grouping box to get more group header/footers sections for your
subreports.
There is a design issue here that really bothers me though: you should not
run into this issue if you have a Student table, a Subject table, and a
junction table betweeen them. More info:
Relationships between Tables (School Grades example)
at:
http://members.iinet.net.au/~allenbrowne/casu-06.html

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"John M" <jo**@jmawer.demon.co.uk> wrote in message
news:cs*******************@news.demon.co.uk...

For reporting grades and comments about students, I use one subreport per subject. This includes a number of text boxes, some containing numerical data, but one containing a textual report. Depending on how much is
written, sometime there are three on a page, sometimes two etc. What I
cannot seem to do is to get it to 'not start a report for a subject unless it can fit it on a page'. The keep together option seem to have no effect in this case. I feel I want to put an elastice band round the various
fields, but there is no 'ealstic band option!!
Thanks in advance


Nov 13 '05 #3

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

Similar topics

0
by: John M | last post by:
Hi, I have devised a system to produce pupil reports for our school using Access. Each subject report consists of a series of numerical / simple text data together with a written report written...
6
by: Steve Jorgensen | last post by:
I tried to fix a problem for a client today in which report sections and even individual text controls in some of their reports are being split across page boundaries. Of course, I was thinking...
0
by: Johnny M | last post by:
I have a main report that consists of 15 subreports. When a main detail item is produced only selected subreports are produced depending on a certain control. The subreports generally occupy only 3...
3
by: Alan Wang | last post by:
Hi there, Once my application gets complicated and complicated. I found it's really hard to keep track of Session value I am using in my asp.net application. I am just wondering if anyone have...
2
by: tbee | last post by:
I have a multicolumn report with one group header section. The header has "new col or row before and after" to make sure the header always starts on a new line. Basically I have two problems: 1....
0
by: Tim Marshall | last post by:
Access 2003. A report of mine was hanging on print preview. It turned out the issue was a bound text box where the data was too big to fit all on one page. When I changed the "keep together"...
4
by: ckirchho | last post by:
Hallo, In a form I have several text or checkbox inputs with their appropriate labels. I'd like to keep label and input together, so I connect them with a &nbsp;, like: <input type="checkbox"...
0
by: Les Desser | last post by:
I have a problem in an A97 report. The detail section of the report has Keep-together and CanGrow set to Yes The detail section contains a sub-report which can grow quite large. If the...
0
by: CoreyReynolds | last post by:
Hello, so I'm not sure how to go about this. My table is below: Each piece of equipment we have has an equipmentID, and can have multiple Compartments (parts in the machine), which are dueIn (due...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: 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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...

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.