I could be wrong, but I don't think there's a way to do that in Access. In VB.
Net and other apps I believe you can define something as a container, and
then set it's visible property, but I don't think Access has an equivalent
concept. I;m still using 2000, so maybe newer versions do?
What I do in one my apps is I define a label that is big enough to cover the
controls I don't want seen (I have a HUGE number of them - I wouldn't bother
if it was a relatively small number, then I'd just set the indivisual control
visible properties). I set it's Back Style property to Normal and it's Back
Color to the same as that of the form and place it over the controls. Then I
set it's visible property. If it's visible then those other controls aren't
because the label is over them. It can be a little bit messy when you have
to edit the form, because you have to move it around when you need to get to
the covered controls, but it works.
Thanx for the reply.
Tried this code, but it only hides the "rectangle" that surrounds the fields.
I actually wanted to *group* the fields, and hide that control only.
The end result being that everything would be hidden.
Any ideas, or do I have to pick thru each control?
Thanx again,
- Mike
I'm thinking this may be done using the OnCurrent event. Check the value of
LocalCurrency and if it equals "USD" then hide the other controls:
[quoted text clipped - 32 lines]