Snakeing Sub Report

M

Mervyn Thomas

I have a members database with people divided into groups or categories etc.
The report I am trying to do is have many columns at the group header level
with only one field - the fullname of all those members in the detail
section for that group. What I would like to have is this information
is snaked through about 3 columns in this detail section. Is there any
way of doing it? Could it be a macro? Except I cannot think how to go
about it!
 
J

John Spencer

In a sub-report you can have multiple columns but you must use across then
down layout and not down then across. If that does not solve your problem
then you are going to need some complex coding to identify which records go in
column 1, 2, and 3. You would still need to used the across then down setup.

To set up multiple columns, you use page setup. Found under the File menu in
versions of Access prior to Access 2007.

Hope this helps solve your problem.

John Spencer
Access MVP 2002-2005, 2007-2010
The Hilltop Institute
University of Maryland Baltimore County
 
M

Mervyn Thomas

I guess I would need to get the multiple columns into a subreport and then
insert this into the main report which can only handle one column. I am
not too sure how to accomplish this in practise!
 
J

John Spencer

Do you really need a sub-report to do what you want? I can't tell from your
description. I only proposed doing this in a sub-report because of your
subject line.

John Spencer
Access MVP 2002-2005, 2007-2010
The Hilltop Institute
University of Maryland Baltimore County
 
K

KenSheridan via AccessMonster.com

The demo file at the following link might help:

http://community.netscape.com/n/pfx...libraryMessages&webtag=ws-msdevapps&tid=24271


Its simplified as it was produced purely in response to a reader's enquiry to
a contact of mine who wrote a databases column in a magazine, but it should
give you the general idea. In this case the people are grouped by address
rather than category, but the principle is the same.

The file includes both a single report and a subreport solution. The latter
would probably suit you; the first manipulates the layout of the report in
code at runtime and was only produced because the reader in question
specifically wanted to know how to do this. While it gives the same result,
using a subreport is far simpler.

Another thing you'll notice is that each person has an FP (family position)
value by which they are sorted in the subreport. Again this was in response
to the reader's specific requirement and is not an intrinsic part of the
solution.

A similar layout could be produced with a single multi-column report, but the
group value (the address in my demo) would be above the people's names rather
than to their left. Using a subreport means it can be positioned to the
right of the address, so the first row of names is on the same line as the
address, as was wanted by the reader in this case.

Ken Sheridan
Stafford, England

Mervyn said:
I guess I would need to get the multiple columns into a subreport and then
insert this into the main report which can only handle one column. I am
not too sure how to accomplish this in practise!
In a sub-report you can have multiple columns but you must use across then
down layout and not down then across. If that does not solve your problem
[quoted text clipped - 19 lines]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top