Tags

Capilano

Registered User.
Local time
Today, 06:41
Joined
Feb 19, 2001
Messages
63
I am trying to set the "Visible" property for a group of controls. ie. Control.Visible = True or False. I Have done this many times individually, but I would like to do it using a collection and the Tag Function. ie. if I assign the Tags based on the grouping letter that I want and then and then turn them on and off as a group. For example, make all of the the controls in a report/form with a Tag of "A" visible.

I really would appreciate if someone could show me how to set this up.

Thanks very much.

Pat
 
Try something like
dim ctl as control
For each ctl in Me.Controls
if ctl.tag = "WhateverValue" then
ctl.visible = true
end if
next
 

Users who are viewing this thread

Back
Top Bottom