Resize Group Footer using VB

B

Brian

I would like to resize a group footer based on data that
is or isn't on the report. How can I do this using VBA?
I know that you can't resize if there is a control in the
footer. So I have a process that will remove controls.
Now I need to be able to resize the footer height to 0.
Any help would be appreciated.
 
M

Marshall Barton

Brian said:
I would like to resize a group footer based on data that
is or isn't on the report. How can I do this using VBA?
I know that you can't resize if there is a control in the
footer. So I have a process that will remove controls.
Now I need to be able to resize the footer height to 0.


Given the question, I think you must be using AXP or or
newer.

I don't know what you mean by "remove" controls, but it is
probably unnecessary. You can reduce the height of the
section, but not so much that it would chop off a control.
OTOH, you can set the Top (and/or Height) property of the
controls (so that they move up out of the way of the bottom
of the section) before you reduce the height of the section.

As to your question of making the section height 0, instead
of messing around with all that stuff, just make the section
invisible.
 

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