dgunbreakable
New member
- Local time
- Today, 07:33
- Joined
- Oct 13, 2014
- Messages
- 7
Hello, I have the code below and am trying to have a a form allow Text Box to become visible based on selected items from a List box. Can some one please help as I am getting the error listed?
THANK YOU...<<<<<<<<<<<<<<<
THANK YOU...<<<<<<<<<<<<<<<
SQL:
Private Sub specific_opt_Click()
Dim users As Control
Dim ctrler As String
Dim xx As Long
If Me.specific_opt = True Then GoTo 169
Exit Sub
169:
Me.equal_opt = False
assign_lbl.Visible = True
Dim i As Integer, selCount As Integer
For i = 0 To slct_auditor.ListCount - 1
If slct_auditor.Selected(i) = True Then selCount = selCount + 1
Next
Any_Selected = CStr(selCount)
If Me.specific_opt = True And selCount = 0 Then MsgBox "Please select at least 1 Auditor!"
If Me.specific_opt = True And selCount = 0 Then Exit Sub
For xx = 1 To selCount
ctrler = "user" & xx
If xx > 0 Then
ctrler.Visible = True
Else
End If
Next xx
End Sub
Last edited by a moderator: