D
DS
Is There a better way to write this......
For Each ctl In Me.Controls
If ctl.Tag = "MS" Then
ctl.Visible = True
ElseIf ctl.Tag = "MI" Then
ctl.Visible = False
ElseIf ctl.Tag = "MG" Then
ctl.Visible = False
ElseIf ctl.Tag = "IM" Then
ctl.Visible = False
End If
Next ctl
instead of the else if's
This didn't work.
If ctl.Tag = "MS" Then
ctl.Visible = True
Else:
ctl.Visible = False
End If
Neither did this.
If ctl.Tag = "MS" Then
ctl.Visible = True
ElseIf ctl.Tag = "MI","MG","IM" Then
ctl.Visible = False
End If
Thanks
DS
For Each ctl In Me.Controls
If ctl.Tag = "MS" Then
ctl.Visible = True
ElseIf ctl.Tag = "MI" Then
ctl.Visible = False
ElseIf ctl.Tag = "MG" Then
ctl.Visible = False
ElseIf ctl.Tag = "IM" Then
ctl.Visible = False
End If
Next ctl
instead of the else if's
This didn't work.
If ctl.Tag = "MS" Then
ctl.Visible = True
Else:
ctl.Visible = False
End If
Neither did this.
If ctl.Tag = "MS" Then
ctl.Visible = True
ElseIf ctl.Tag = "MI","MG","IM" Then
ctl.Visible = False
End If
Thanks
DS