Return to Snippet

Revision: 13283
at April 17, 2009 12:06 by heislekw


Initial Code
Dim ctl As Control
 
    For Each ctl In Forms!frmAssets
    'For Each ctl In Me.Parent
        If ctl.Tag = "**" Then
            ctl.Visible = False
        ElseIf ctl.Tag = "***" Then
            ctl.Visible = False
        ElseIf ctl.Tag = "*" Then
            ctl.Visible = True
        End If
        
    Next
    Set ctl = Nothing

Dim ctl As Control
 
    For Each ctl In Me
        If ctl.Tag = "*" Then
            If IsNull(Me.PtLName) Then
                ctl.Enabled = False
            Else
                ctl.Enabled = True
            End If
        End If
    Next
    Set ctl = Nothing

Initial URL


Initial Description


Initial Title
Use tag property to handle multiple controls

Initial Tags


Initial Language
Visual Basic