D
Dave Bolt
I have lots of reports which need to be updated by adding a GroupFooter.
I have this snippet of code which does the job, almost.
Dim varGroupLevel As Variant
For Each accobj In CurrentProject.AllReports
strDoc = accobj.Name
DoCmd.OpenReport strDoc, acViewDesign 'Currently working in Access
2000
With Reports(strDoc)
If Not .GroupLevel(0).GroupFooter Then
varGroupLevel = CreateGroupLevel(strDoc, "PrintOrder",
False, True)
End If
End With
So the problem is that when I view the grouping information in a report that
has been updated with this code, I see two entries. The original one without
the footer, and the new one with the footer.
I only see one detail and one footer in design view.
How do I get rid of the original entry in code?
Do I need to?
Am I doing this all wrong?
Thanks
Dave
I have this snippet of code which does the job, almost.
Dim varGroupLevel As Variant
For Each accobj In CurrentProject.AllReports
strDoc = accobj.Name
DoCmd.OpenReport strDoc, acViewDesign 'Currently working in Access
2000
With Reports(strDoc)
If Not .GroupLevel(0).GroupFooter Then
varGroupLevel = CreateGroupLevel(strDoc, "PrintOrder",
False, True)
End If
End With
So the problem is that when I view the grouping information in a report that
has been updated with this code, I see two entries. The original one without
the footer, and the new one with the footer.
I only see one detail and one footer in design view.
How do I get rid of the original entry in code?
Do I need to?
Am I doing this all wrong?
Thanks
Dave