ukmale65000
Registered User.
- Local time
- Today, 12:52
- Joined
- Nov 28, 2007
- Messages
- 52
I currently have a command button on my main form, and am trying to get a list of supplimentry questions to appear when i press the command button.
Currently the code i use is
Private Sub cmd_nds_Click()
Dim ctl As Control
For Each ctl In Me.Controls
If ctl.Tag = "showx" Then
ctl.Visible = Me.cmd_nds
End If
Next ctl
End Sub
This does not work with the line " ctl.Visible = Me.cmd_nds
" being highlighted any idea why?
Thanks in advance
Currently the code i use is
Private Sub cmd_nds_Click()
Dim ctl As Control
For Each ctl In Me.Controls
If ctl.Tag = "showx" Then
ctl.Visible = Me.cmd_nds
End If
Next ctl
End Sub
This does not work with the line " ctl.Visible = Me.cmd_nds
" being highlighted any idea why?
Thanks in advance