Report Groupby variable

C

cdesio

Group by variable

Does anyone know how to group a report by a varible set on a form? I have
tried using
the expression type and using =[forms!filters!filter_name but it seems to
just ignore it.
 
M

Marshall Barton

cdesio said:
Group by variable

Does anyone know how to group a report by a varible set on a form? I have
tried using
the expression type and using =[forms!filters!filter_name but it seems to
just ignore it.


The group level must already exist, but you can modify the
field that is used for the grouping.

Use code in the report's Open event:

Me,GroupLevel(0)/ControlSource = forms!filters!filter_name
 
C

cdesio

Marshall,

When I enter the below code into the open event I get this:

The expression you entered contains invalid syntax, or you need to enclose
your text data in quotes.

Marshall said:
Group by variable

Does anyone know how to group a report by a varible set on a form? I have
tried using
the expression type and using =[forms!filters!filter_name but it seems to
just ignore it.

The group level must already exist, but you can modify the
field that is used for the grouping.

Use code in the report's Open event:

Me,GroupLevel(0)/ControlSource = forms!filters!filter_name
 
C

cdesio via AccessMonster.com

Got it. Thanks for pointing me in the right direction.
Marshall,

When I enter the below code into the open event I get this:

The expression you entered contains invalid syntax, or you need to enclose
your text data in quotes.
[quoted text clipped - 9 lines]
Me,GroupLevel(0)/ControlSource = forms!filters!filter_name
 
M

Marshall Barton

Sorry about the typo. Clumsy fingers and weak eyes
sometimes combine to put a comma where I meant to put a dot.
--
Marsh

Got it. Thanks for pointing me in the right direction.
Marshall,

When I enter the below code into the open event I get this:

The expression you entered contains invalid syntax, or you need to enclose
your text data in quotes.
Group by variable
[quoted text clipped - 9 lines]
Me,GroupLevel(0)/ControlSource = forms!filters!filter_name
 

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