Hide/Reveal a control

  • Thread starter Thread starter Jody
  • Start date Start date
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
 
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.
 
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.
 
Back
Top