MaliciousMike
Registered User.
- Local time
- Today, 17:57
- Joined
- May 24, 2006
- Messages
- 118
I've got 20 checkboxes which i need to do the same thing but individually.
I tried this:
tmpquest works.
tmpcheck doesn't.
I tried dimming tmpcheck as lots of things but no luck.
Any help?
Code:
If IsNull(DLookup("[question 1]", "qryQuestions")) Then
chkQuestion1.Visible = False
Else
chkQuestion1.Visible = True
End If
I tried this:
Code:
Dim loopy As Integer
Dim tmpquest As String
For loopy = 1 To 20
tmpquest = "question " & loopy
tmpCheck = "chkQuestion" & loopy
If IsNull(DLookup(tmpquest, "qryQuestions")) Then
tmpCheck.Visible = False
Else
tmpCheck.Visible = True
End If
Next loopy
tmpquest works.
tmpcheck doesn't.
I tried dimming tmpcheck as lots of things but no luck.
Any help?