Hide form footer

G

Guest

Hi gang. I know this is simple and I've seen it in a demo somewhere. And
yes, I've read the 8/11/05 posting on this. But I don't want a big old blank
space where the footer used to be by just toggling the visible property. The
footer is mostly summary information that takes up real estate (almost more
space than the form itself) and the user doesn't need to see it all the time.
I want to know how to expand and contract the footer of a form when the user
clicks a button in another section, essentially hiding the whole footer and
resizing the window to match the fact that the footer section is hidden. Can
someone point me to a demo or give me a suggestion?

accesskastle
 
G

Guest

Try this, to make the footer disapear

Me.FormFooter.Visible = False

Or , to make the footer apear
Me.FormFooter.Visible = True
 
G

Guest

Sorry, I still have the same problem- the size of the form remains constant.
The form crunches when I hit the command button because now the footer is
taking up the space of the detail section. See my code below:

Private Sub cmdShow_Click()
If Me!cmdShow.Caption = "»" Then
Me.FormFooter.Visible = True
Me!cmdShow.Caption = "«"
Else
Me.FormFooter.Visible = False
Me!cmdShow.Caption = "»"
End If
End Sub

accesskastle
 
A

askjerry

Making the footer visible or not visible does not chage the size of the
footer. It still takes up real estate regardless. You probably need to
set the Can Grow and Can Shrink properties of the footer AND all the
controls on the footer. Make all the controls the smallest heigth that
you can. This will be the minimum height of your footer. When there is
text available the footer will grow to accomadate the text. You can not
make the footer zero height otherwise nothing will show but you can
make it some infinitesimal height and it should grow and shrink. This
means you will have to manually set the output to the text box and or
labels when the user hits the command button to "show" the footer.
 
G

Guest

I know this is a little old now, but I also ran into this issue. My problem
was the form properties. Turns out the form must be allowed to grow and
shrink (be sizeable). If not, making the visible property false on the
footer does nothing. Seems to work in a parent/child relationship. The
parent must be allowed to be sizable, otherwise the child (footer) has no
affect on the form. I don't know if I would classify this as a problem
(bug), but it, at least, is very misleading - at least to me....

Jason
 

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