A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Group within group



 
 
Thread Tools Display Modes
  #1  
Old December 16th, 2009, 02:55 PM posted to microsoft.public.access.reports
klp via AccessMonster.com
external usenet poster
 
Posts: 98
Default Group within group

I have a report that is a summary. I have a group footer on field WCNo. I
want to group within that group. Is that possible? Here is an example of my
report.

Work Center Quantity
2010 1
551 2
552 3
555 4
556 5
565 6
602 77
605 8
803 9
808 10

So that is what prints currently. I would like for it to look like this:

2010 1
subtotal of 2010 1
551 1
552 2
555 3
556 4
565 5
subtotal for 500's 15

Etc.

Thanks in advance.
Kim P

--
Message posted via http://www.accessmonster.com

  #2  
Old December 16th, 2009, 04:32 PM posted to microsoft.public.access.reports
Marshall Barton
external usenet poster
 
Posts: 5,361
Default Group within group

klp via AccessMonster.com wrote:

I have a report that is a summary. I have a group footer on field WCNo. I
want to group within that group. Is that possible? Here is an example of my
report.

Work Center Quantity
2010 1
551 2
552 3
555 4
556 5
565 6
602 77
605 8
803 9
808 10

So that is what prints currently. I would like for it to look like this:

2010 1
subtotal of 2010 1
551 1
552 2
555 3
556 4
565 5
subtotal for 500's 15

Etc.


Sure, just insert another group on WCNo (above the one you
have), but with its Interval set to 100

--
Marsh
MVP [MS Access]
  #3  
Old December 16th, 2009, 04:42 PM posted to microsoft.public.access.reports
klp via AccessMonster.com
external usenet poster
 
Posts: 98
Default Group within group

Okay, I did that but it's breaking it up for EACH work center no. So if I had
555, it would total after then if I had 565 it would total after that as well.
It's not keeping the 500's together. I think I did it right. On grouping I
added WCNo above the one I already had and set the interval to 100. Correct?
What exactly does the interval do?

Marshall Barton wrote:
I have a report that is a summary. I have a group footer on field WCNo. I
want to group within that group. Is that possible? Here is an example of my

[quoted text clipped - 24 lines]

Etc.


Sure, just insert another group on WCNo (above the one you
have), but with its Interval set to 100


--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ports/200912/1

  #4  
Old December 16th, 2009, 04:43 PM posted to microsoft.public.access.reports
klp via AccessMonster.com
external usenet poster
 
Posts: 98
Default Group within group

Okay, I did that but it's breaking it up for EACH work center no. So if I had
555, it would total after then if I had 565 it would total after that as well.
It's not keeping the 500's together. I think I did it right. On grouping I
added WCNo above the one I already had and set the interval to 100. Correct?
What exactly does the interval do?

Marshall Barton wrote:
I have a report that is a summary. I have a group footer on field WCNo. I
want to group within that group. Is that possible? Here is an example of my

[quoted text clipped - 24 lines]

Etc.


Sure, just insert another group on WCNo (above the one you
have), but with its Interval set to 100


--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ports/200912/1

  #5  
Old December 16th, 2009, 04:47 PM posted to microsoft.public.access.reports
John Spencer
external usenet poster
 
Posts: 7,815
Default Group within group

Well, you should group below the existing group if you want to sub-group the
existing group.

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

klp via AccessMonster.com wrote:
Okay, I did that but it's breaking it up for EACH work center no. So if I had
555, it would total after then if I had 565 it would total after that as well.
It's not keeping the 500's together. I think I did it right. On grouping I
added WCNo above the one I already had and set the interval to 100. Correct?
What exactly does the interval do?

Marshall Barton wrote:
I have a report that is a summary. I have a group footer on field WCNo. I
want to group within that group. Is that possible? Here is an example of my

[quoted text clipped - 24 lines]
Etc.

Sure, just insert another group on WCNo (above the one you
have), but with its Interval set to 100


  #6  
Old December 16th, 2009, 05:02 PM posted to microsoft.public.access.reports
klp via AccessMonster.com
external usenet poster
 
Posts: 98
Default Group within group

Huh, I did that and it's STILL grouping on each work center. What am I doing
wrong?

John Spencer wrote:
Well, you should group below the existing group if you want to sub-group the
existing group.

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

Okay, I did that but it's breaking it up for EACH work center no. So if I had
555, it would total after then if I had 565 it would total after that as well.

[quoted text clipped - 8 lines]
Sure, just insert another group on WCNo (above the one you
have), but with its Interval set to 100


--
Message posted via http://www.accessmonster.com

  #7  
Old December 16th, 2009, 05:07 PM posted to microsoft.public.access.reports
Marshall Barton
external usenet poster
 
Posts: 5,361
Default Group within group

Sorry, I should have been more explicit. Set the first
group's properties:

Group On: Interval
Group Interval: 100

The two of those specify that the group will be on values
the same as if you grouped on the expression =WCNo \ 100
(i.e. ignore the lowest two digits)
--
Marsh
MVP [MS Access]

klp via AccessMonster.com wrote:
Okay, I did that but it's breaking it up for EACH work center no. So if I had
555, it would total after then if I had 565 it would total after that as well.
It's not keeping the 500's together. I think I did it right. On grouping I
added WCNo above the one I already had and set the interval to 100. Correct?
What exactly does the interval do?

Marshall Barton wrote:
I have a report that is a summary. I have a group footer on field WCNo. I
want to group within that group. Is that possible? Here is an example of my

[quoted text clipped - 24 lines]

Etc.


Sure, just insert another group on WCNo (above the one you
have), but with its Interval set to 100


  #8  
Old December 16th, 2009, 05:15 PM posted to microsoft.public.access.reports
klp via AccessMonster.com
external usenet poster
 
Posts: 98
Default Group within group

Okay I see. However, in my grouping, where it says Group On: I don't have
Interval as an option. I have each value or prefix characters. Now what?

Marshall Barton wrote:
Sorry, I should have been more explicit. Set the first
group's properties:

Group On: Interval
Group Interval: 100

The two of those specify that the group will be on values
the same as if you grouped on the expression =WCNo \ 100
(i.e. ignore the lowest two digits)
Okay, I did that but it's breaking it up for EACH work center no. So if I had
555, it would total after then if I had 565 it would total after that as well.

[quoted text clipped - 10 lines]
Sure, just insert another group on WCNo (above the one you
have), but with its Interval set to 100


--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ports/200912/1

  #9  
Old December 16th, 2009, 05:17 PM posted to microsoft.public.access.reports
John Spencer
external usenet poster
 
Posts: 7,815
Default Group within group

My mistake. I misread what you were trying to do. Marshall's advice was
correct (as usual).

Is WCNo a number field or a text field? If it is a text that contains numbers
you might have to use an expression to get the number value and group on that.
=Val(WcNo)

Interval means that the group is created based on the interval - so if the
interval is 100 you should get a group every time the 100's value changes.

One problem is the order of the display may change since the 500's will come
before the 2000's.

Another way to create the groups (without using the interval property of 100)
is to use an expression like the following

=(Val(WcNo)-1) \ 100

If none of these work for you, you may have to build a table that contains
your WCNo and a group designator defining which group the Work Center belongs
to and include that table in the query and the group designator field and
group on the group designator field. This allows you the most flexibility in
that you can assign any work center to any group and have them appear in
sorted order based on the group designator.

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

klp via AccessMonster.com wrote:
Huh, I did that and it's STILL grouping on each work center. What am I doing
wrong?

John Spencer wrote:
Well, you should group below the existing group if you want to sub-group the
existing group.

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

Okay, I did that but it's breaking it up for EACH work center no. So if I had
555, it would total after then if I had 565 it would total after that as well.

[quoted text clipped - 8 lines]
Sure, just insert another group on WCNo (above the one you
have), but with its Interval set to 100


  #10  
Old December 16th, 2009, 05:28 PM posted to microsoft.public.access.reports
klp via AccessMonster.com
external usenet poster
 
Posts: 98
Default Group within group

Oh wow! I will tackle that as sson as I get back in from lunch. I may need
some more help though! Thank you so much for your time. I'll let you know if
this works.

John Spencer wrote:
My mistake. I misread what you were trying to do. Marshall's advice was
correct (as usual).

Is WCNo a number field or a text field? If it is a text that contains numbers
you might have to use an expression to get the number value and group on that.
=Val(WcNo)

Interval means that the group is created based on the interval - so if the
interval is 100 you should get a group every time the 100's value changes.

One problem is the order of the display may change since the 500's will come
before the 2000's.

Another way to create the groups (without using the interval property of 100)
is to use an expression like the following

=(Val(WcNo)-1) \ 100

If none of these work for you, you may have to build a table that contains
your WCNo and a group designator defining which group the Work Center belongs
to and include that table in the query and the group designator field and
group on the group designator field. This allows you the most flexibility in
that you can assign any work center to any group and have them appear in
sorted order based on the group designator.

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

Huh, I did that and it's STILL grouping on each work center. What am I doing
wrong?

[quoted text clipped - 12 lines]
Sure, just insert another group on WCNo (above the one you
have), but with its Interval set to 100


--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ports/200912/1

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 02:46 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.