PC Review


Reply
Thread Tools Rate Thread

Multiple Detail sections?

 
 
Joel Wiseheart
Guest
Posts: n/a
 
      23rd Jan 2004
I need to be able to group four sections of a report in
the following fashion:

Header

Group 1 Header
Group 1 Detail
Group 1 Footer

Group 2 Header
Group 2 Detail
Group 2 Footer

Group 3 Header
Group 3 Detail
Group 3 Footer

Group 4 Header
Group 4 Detail
Group 4 Footer


Access seems to only want to group the information this
way:

Header

Group 1 Header
Group 2 Header
Group 3 Header
Group 4 Header
Detail
Group 4 Footer
Group 3 Footer
Group 2 Footer
Group 1 Footer

Is there any way to get multiple "Detail" sections like
the first example?

Thanks!


 
Reply With Quote
 
 
 
 
MGFoster
Guest
Posts: n/a
 
      23rd Jan 2004
Joel Wiseheart wrote:
> I need to be able to group four sections of a report in
> the following fashion:
>
> Header
>
> Group 1 Header
> Group 1 Detail
> Group 1 Footer
>
> Group 2 Header
> Group 2 Detail
> Group 2 Footer
>
> Group 3 Header
> Group 3 Detail
> Group 3 Footer
>
> Group 4 Header
> Group 4 Detail
> Group 4 Footer
>
>
> Access seems to only want to group the information this
> way:
>
> Header
>
> Group 1 Header
> Group 2 Header
> Group 3 Header
> Group 4 Header
> Detail
> Group 4 Footer
> Group 3 Footer
> Group 2 Footer
> Group 1 Footer
>
> Is there any way to get multiple "Detail" sections like
> the first example?
>
> Thanks!
>
>


Subreports.

MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)

 
Reply With Quote
 
 
 
 
Joel Wiseheart
Guest
Posts: n/a
 
      23rd Jan 2004

>-----Original Message-----
>Joel Wiseheart wrote:
>> I need to be able to group four sections of a report in
>> the following fashion:
>>
>> Header
>>
>> Group 1 Header
>> Group 1 Detail
>> Group 1 Footer
>>
>> Group 2 Header
>> Group 2 Detail
>> Group 2 Footer
>>
>> Group 3 Header
>> Group 3 Detail
>> Group 3 Footer
>>
>> Group 4 Header
>> Group 4 Detail
>> Group 4 Footer
>>
>>
>> Access seems to only want to group the information this
>> way:
>>
>> Header
>>
>> Group 1 Header
>> Group 2 Header
>> Group 3 Header
>> Group 4 Header
>> Detail
>> Group 4 Footer
>> Group 3 Footer
>> Group 2 Footer
>> Group 1 Footer
>>
>> Is there any way to get multiple "Detail" sections like
>> the first example?
>>
>> Thanks!
>>
>>

>
>Subreports.
>
>MGFoster:::mgf00 <at> earthlink <decimal-point> net
>Oakland, CA (USA)
>
>.

I've tried that. I get an error pertaining to the bottom
section: Error number 2100: The control or subform control
is too large for this location.

Somehow, I need to get this subreport to continue onto the
next page, if it hits the bottom.

Since the number of records in the detail sections can
vary, the size of the subreport grows or shrinks with it.


 
Reply With Quote
 
Larry Linson
Guest
Posts: n/a
 
      24th Jan 2004
> I've tried that. I get an error pertaining to the bottom
> section: Error number 2100: The control or subform control
> is too large for this location.
>
> Somehow, I need to get this subreport to continue onto the
> next page, if it hits the bottom.
>
> Since the number of records in the detail sections can
> vary, the size of the subreport grows or shrinks with it.


Have you set all the Subreport Controls' CanGrow and CanShrink property to
Yes? Have you set the main Report's Detail Section's CanGrow and CanShrink
property to Yes? Have you then squeezed the Subreport Controls in Design
View so they all fit on the Page?

When is it that you are getting Error 2100? In Design View or at Runtime?

Larry Linson
Microsoft Access MVP



 
Reply With Quote
 
Joel Wiseheart
Guest
Posts: n/a
 
      27th Jan 2004

>-----Original Message-----
>> I've tried that. I get an error pertaining to the

bottom
>> section: Error number 2100: The control or subform

control
>> is too large for this location.
>>
>> Somehow, I need to get this subreport to continue onto

the
>> next page, if it hits the bottom.
>>
>> Since the number of records in the detail sections can
>> vary, the size of the subreport grows or shrinks with

it.
>
>Have you set all the Subreport Controls' CanGrow and

CanShrink property to
>Yes? Have you set the main Report's Detail Section's

CanGrow and CanShrink
>property to Yes? Have you then squeezed the Subreport

Controls in Design
>View so they all fit on the Page?
>
>When is it that you are getting Error 2100? In Design

View or at Runtime?
>
> Larry Linson
> Microsoft Access MVP
>

Larry,
It happens at run-time. In my initial attempt using
subreports, I would align the sections like:

With Me
!sr_MRRDisposition.Top = !sr_MRRDefects.Top + !
sr_MRRDefects.Height
!sr_MRRCA.Top = !sr_MRRDisposition.Top +
sr_MRRDisposition.Height
End With

The forms need to align with sr_MRRDefects on the top,
sr_MRRDispositions in the middle and sr_MRRCA on the
bottom. This code works fine for aligning the
sr_MRRDisposition subreport, but gives an Error 2100 run-
time error for the sr_MRRCA report. I found this out for
two reasons:

- The second section aligns properly, but the third
doesn't.
- The run-time error does not occur if I leave the first
statement in, and 'remark out' the second.

I checked all the CanGrow & CanShrink propreties. They're
okay.

The only other contributing factor is that under this
scenario, the bottom section also runs into the bottom of
the page. I need it to continue on to the next sheet in
this case. I don't know if that has to do with it or not.

The ponderous thing is that it draws the last subreport
control okay, with no errors, if I remark out the second
statement. It's not until I try to change the Top
property that it gives an error.

Thanks for your help,
Joel Wiseheart



 
Reply With Quote
 
Guest
Posts: n/a
 
      27th Jan 2004

>-----Original Message-----
>> I've tried that. I get an error pertaining to the

bottom
>> section: Error number 2100: The control or subform

control
>> is too large for this location.
>>
>> Somehow, I need to get this subreport to continue onto

the
>> next page, if it hits the bottom.
>>
>> Since the number of records in the detail sections can
>> vary, the size of the subreport grows or shrinks with

it.
>
>Have you set all the Subreport Controls' CanGrow and

CanShrink property to
>Yes? Have you set the main Report's Detail Section's

CanGrow and CanShrink
>property to Yes? Have you then squeezed the Subreport

Controls in Design
>View so they all fit on the Page?
>
>When is it that you are getting Error 2100? In Design

View or at Runtime?
>
> Larry Linson
> Microsoft Access MVP
>

One other thing I forgot to mention...Each time the
report is run, the height of each section may vary.
 
Reply With Quote
 
Joel Wiseheart
Guest
Posts: n/a
 
      28th Jan 2004

>-----Original Message-----
>
>>-----Original Message-----
>>> I've tried that. I get an error pertaining to the

>bottom
>>> section: Error number 2100: The control or subform

>control
>>> is too large for this location.
>>>
>>> Somehow, I need to get this subreport to continue

onto
>the
>>> next page, if it hits the bottom.
>>>
>>> Since the number of records in the detail sections can
>>> vary, the size of the subreport grows or shrinks with

>it.
>>
>>Have you set all the Subreport Controls' CanGrow and

>CanShrink property to
>>Yes? Have you set the main Report's Detail Section's

>CanGrow and CanShrink
>>property to Yes? Have you then squeezed the Subreport

>Controls in Design
>>View so they all fit on the Page?
>>
>>When is it that you are getting Error 2100? In Design

>View or at Runtime?
>>
>> Larry Linson
>> Microsoft Access MVP
>>

>Larry,
>It happens at run-time. In my initial attempt using
>subreports, I would align the sections like:
>
> With Me
> !sr_MRRDisposition.Top = !sr_MRRDefects.Top + !
>sr_MRRDefects.Height
> !sr_MRRCA.Top = !sr_MRRDisposition.Top +
>sr_MRRDisposition.Height
> End With
>
>The forms need to align with sr_MRRDefects on the top,
>sr_MRRDispositions in the middle and sr_MRRCA on the
>bottom. This code works fine for aligning the
>sr_MRRDisposition subreport, but gives an Error 2100 run-
>time error for the sr_MRRCA report. I found this out for
>two reasons:
>
>- The second section aligns properly, but the third
>doesn't.
>- The run-time error does not occur if I leave the first
>statement in, and 'remark out' the second.
>
>I checked all the CanGrow & CanShrink propreties.

They're
>okay.
>
>The only other contributing factor is that under this
>scenario, the bottom section also runs into the bottom

of
>the page. I need it to continue on to the next sheet in
>this case. I don't know if that has to do with it or not.
>
>The ponderous thing is that it draws the last subreport
>control okay, with no errors, if I remark out the second
>statement. It's not until I try to change the Top
>property that it gives an error.
>
>Thanks for your help,
>Joel Wiseheart
>

Okay, I found the answer to my problem, if anyone else is
watching this thread. From the VB help:

"When you open a form based on an underlying query,
Microsoft Access runs the underlying query for the form
before it runs the Open macro or event procedure.
However, when you open a report based on an underlying
query, Microsoft Access runs the Open macro or event
procedure before it runs the underlying query for the
report."

....and...

"When you first open a form, the following events occur
in this order:

Open Þ Load Þ Resize Þ Activate Þ Current"

The problem was that I was trying to relocate the form
sections during the Open event, at which point the
underlying query had not run yet. By moving the code to
the Activate event, it now works as expected.

Whew! 3 days before my deadline...glad I figured that one
out!

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Filtering the Detail Datagrid in a Master Detail Relationship =?Utf-8?B?Qm9i?= Microsoft ADO .NET 1 19th Dec 2004 09:00 PM
Page detail - all fields in page detail move down on some records =?Utf-8?B?bWlrZWluc2YyMzU=?= Microsoft Access Reports 0 22nd Jun 2004 06:27 AM
Master-> Detail-> Detail with datagrids solex Microsoft VB .NET 1 4th Mar 2004 07:17 AM
Concatenation of detail-records in a Master-Detail relationship John Smith Microsoft Access Queries 2 14th Nov 2003 05:08 AM
master detail sub-detail not updating on row click ewillyb Microsoft Dot NET Framework Forms 1 27th Sep 2003 03:59 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:37 AM.