Dynamic Group Report

I

iccsi

I have a report which has 3 levels which are detail, group 1 and group
2.

I would like to have my report has dynamic grouping,

For example, there is one radio button on the form which has 3 options
like details, group 1 and group 2.

If user selects details then there is no group to get whole report in
one group. If user selects group 1 then the report shows group 1 and
details.


Are there any example to have dynamic grouping?


Your information is great appreciated,
 
K

KARL DEWEY

One way is to use the option group in an IIF statement of calculated field in
a query to pull data or null that is used in the report grouping.
 
M

Marshall Barton

iccsi said:
I have a report which has 3 levels which are detail, group 1 and group
2.

I would like to have my report has dynamic grouping,

For example, there is one radio button on the form which has 3 options
like details, group 1 and group 2.

If user selects details then there is no group to get whole report in
one group. If user selects group 1 then the report shows group 1 and
details.

Are there any example to have dynamic grouping?


You can only add or delete grouping entries at design time.
However, you can manipulate ***existing*** groups at run
time by setting the GroupLevel (see VBA Help) properties in
the report's Open event procedure.

For example, you can effectively "disable" a group level by
setting the group level entry's control source to a constant
expression:

Me.GroupLevel(0).ControlSource = "=1"
Me.GroupHeader1.Visible = False
Me.GroupFooter1.Visible = False
 

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