Solved

Reports - GroupLevel (ACC97)

Posted on 2002-05-16
6
222 Views
Last Modified: 2012-06-27
Hi,
I have a report that has 2 GroupLevels defined in design mode.
In the help I see that I can edit these group levels or add more using CreateGroupLevel, but how can I remove a group level?
thanks
0
Comment
Question by:jacy_m
6 Comments
 

Author Comment

by:jacy_m
ID: 7015355
In run mode using vb i mean
0
 

Expert Comment

by:DrH
ID: 7015525
Show the Sorting and Grouping box from the view menu
Highlight the row of the group you wish to remove by Left Clicking to the left of the field name
Make certain that Num Lock is off and press the DEL key
Confirm deletion
0
 

Author Comment

by:jacy_m
ID: 7015529
I need to do this in VB code, during run time

I have figured out a way to (sort of) remove the 2nd grouping level now myself... this is to set the ControlSource of GroupLevel1 to be the same as the ControlSource of GroupLevel0 and then hide the header and footer of the second grouping level

I will try and get this question closed...
0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 
LVL 7

Expert Comment

by:Jonathan Kelly
ID: 7015715
i got around this problem by using a report with no grouping levels - ReportSource.
at runtime i copy ReportSource,
paste it as ReportActual,
add grouping levels to ReportActual using CreateGroupLevel,
and load ReportActual as the report.

when the process begins again ReportActual is overwritten effectively removing the grouping levels.






0
 
LVL 15

Expert Comment

by:dbase118
ID: 7016058
Are you specifically wanting to do this in code? I ask because in the Sorting and Grouping dialog box in report design veiw, you can click the grey square at the beginning of whichever line you want to delete and press delete once it highlights.
0
 
LVL 6

Accepted Solution

by:
Mindphaser earned 0 total points
ID: 7016244
jacy_m

points refunded and question moved to PAQ since you provided your own solution.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question