Hide/Reveal a control

J

Jody

Hi,

I'd like to hide and reveal a control using a rectangle
(to cover/reveal) and a toggle button (to activate). The
natural state would be transparent.

The control resides on a subform, which makes the code
more complicated. I'd appreciate any suggestions on how
to:

1)write the line(s) of code
2)which toggle button event makes the most sense.

If a control other than toggle makes more sense, I'd
appreciate input on that as well.

Thanks,
Jody
 
M

Marshall Barton

Jody said:
I'd like to hide and reveal a control using a rectangle
(to cover/reveal) and a toggle button (to activate). The
natural state would be transparent.

The control resides on a subform, which makes the code
more complicated. I'd appreciate any suggestions on how
to:

1)write the line(s) of code
2)which toggle button event makes the most sense.

If a control other than toggle makes more sense, I'd
appreciate input on that as well.

Why are you bothering with a rectangle? Can't you just aet
the control's Visible property?

Me.subformcontrol.Form.thecontrol.Visible = False

Where you would place that line depends on what your form is
trying to accomplish.
 
J

Jody

Thanks Marsh - good advice. Sorry I'm just getting back
now. I was distracted for a few weeks dealing with the
hurricane that hit Halifax, NS.
 

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