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

Report Group Header vs. Detail difficulty

14
Hi,

I am trying to make a report which groups together parents and their children. I have three levels.

I currently have three group headings and one detail section. I have some fields that are specific to the children that I have in details, and I have some fields which span all of the entries (regardless of parent or child)... My problem is that if I put these fields which span entries into details, there's a big space. If I put them into the group headers, they repeat.

Let me give an example:

Let's say my table looks like this:

Grandparent Parent Child GPAge PAge CAge Family
Grandpa Jones Dad Jones Boy Jones 65 45 15 Jones
Grandpa Jones Dad Jones Girl Jones 65 45 10 Jones
Grandpa Jones Bro Jones BroBoy Jones 65 40 5 Jones
Grandma Smith Dad Smith Girl Smith 70 40 10 Smith
Grandpa Smith Dad Smith Girl Smith 70 40 10 Smith
Grandma Right Dad Right 70 40 Right

I want to display these like this:

Name Age Family
Grandpa Jones 65 Jones
Dad Jones 45 Jones
Boy Jones 15 Jones
Girl Jones 10 Jones
Bro Jones 40 Jones
BroBoy Jones 5 Jones
Grandma Smith 70 Smith
Dad Smith 40 Smith
Girl Smith 10 Smith
Grandpa Smith 70 Smith
Dad Smith 40 Smith
Girl Smith 10 Smith
Grandma Right 70 Right
Dad Right 40 Right

The problem I'm having is that if I put FamilyName in the headers, I get family name even if there isn't a value. For example, where there is no child under the Right family, it would look like this:

Grandma Right 70 Right
Dad Right 40 Right
Right

If I put Family in the details section, it looks like this:

Grandma Right 70

Right
Dad Right 40

Right


The problem seems to be that there are multiple group headers, and they have specific data and general data in them...

thoughts?

Thanks!!
Lea Ann
Oct 11 '06 #1
1 2406
lmawler
14
Sorry about the confusion of the first note... formatting came out all wrong... I'm not sure how to get the formatting across, so I'm trying to spell it out this time...

Hi,

I am trying to make a report which groups together parents and their children. I have three levels.

I currently have three group headings and one detail section. I have some fields that are specific to the children that I have in details, and I have some fields which span all of the entries (regardless of parent or child)... My problem is that if I put these fields which span entries into details, there's a big space. If I put them into the group headers, they repeat.

Say I had a table with columns: Grandparent, Parent, Child, GPAge, PAge, CAge, and FamilyName.

Only FamilyName (in my example) would be shared across parent, child, and grandparent.

Then, I want to report on them so that grandparent, their age, and their family comes out on line one, all parents associated with the same grandparent come out on the next line, each with their age and family, and then children come out under their parents.

The problem I'm having is that if I put FamilyName in the headers, I get family name even if there isn't a value. For example, where there is a row with a grandparent and a parent, but no child it would print one row with gparent, gpage, and family, the 2nd row with parent, page, and family, and the third row with just family.

If I put Family in the details section, it looks like this, then the first row has gparent, gpage, and a blank. Row 2 has blank, blank, blank. Row 3 has blank, blank, familyname. Same for parent.

The problem seems to be that there are multiple group headers, and they have specific data and general data in them...

thoughts?

Thanks!!
Lea Ann
Oct 11 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Simone | last post by:
Hello. I am using the code below: ------------------------------------------- Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer) If Me.Section(0).BackColor = vbWhite Then...
1
by: Nathan Bloomfield | last post by:
Does anyone know if there is any documentation which relates to Access2k + ? or can anyone help adjust the code? I am having trouble converting the DAO references. TITLE :INF: How to...
11
by: James P. | last post by:
Hello, I have a report with the Priority field is used as sort order and grouping. The problem is the data in this Priority field if sorted in ascending order is: High, Low, and Medium. How...
3
by: Melissa | last post by:
What specifically causes the Format event of a report's section to fire? Thanks! Melissa
2
by: Tom | last post by:
This is related to an earlier post entitled "Text in Query/Numbers in Report" Brief recap - report has a query as a record source. The query shows the correct data, the report translating the...
1
by: David Horowitz | last post by:
Hi folks. I need to create a report that has a Group Header that pulls certain data from the Detail section. It's something like this: +--Report---------------------------------------- |...
1
by: John | last post by:
I am printing a very basic report with a detail section from a query. When the detail prints out everything is duplicated. For example, if there should be two lines, there are four due to the...
4
by: DavidB | last post by:
Im not sure if I am missing something obvious here or not so excuse me if this is a DFU question please... I have a report I am working on that includes the following data. Agency Name Vendor...
14
ollyb303
by: ollyb303 | last post by:
Hi, I am trying to create a dynamic crosstab report which will display number of calls handled (I work for a call centre) per day grouped by supervisor. I have one crosstab query (Query1) which...
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
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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.