Opengrave
Registered User.
- Local time
- Yesterday, 18:29
- Joined
- Sep 6, 2001
- Messages
- 70
I have a report that list all children in all grades. The users would like to be able to print the report as it is now or have the report grouped by grade and gender. I have created a field in the query that concatenates grade and gender so I do have a field to group on. The problem is that I can't seem to find a way to turn the report grouping on and off from code.
I have researched GroupOn property, GroupHeader/Footer property, and the CreateGroupLevel method. The CreateGroupLevel method seems to do what I need but you have to switch to design view to make it work and because of the way my users edit these reports I'm afraid this is a bad option for me.
Does anyone know of any way you can turn report grouping on and off from VBA without switching to design view?
(If this fails I'll just create a separate report with grouping turned on - I'd just like to do this without an extra report if possible.)
As always any help is appreciated.
I have researched GroupOn property, GroupHeader/Footer property, and the CreateGroupLevel method. The CreateGroupLevel method seems to do what I need but you have to switch to design view to make it work and because of the way my users edit these reports I'm afraid this is a bad option for me.
Does anyone know of any way you can turn report grouping on and off from VBA without switching to design view?
(If this fails I'll just create a separate report with grouping turned on - I'd just like to do this without an extra report if possible.)
As always any help is appreciated.