A
Angel G
How do I loop in a specific control using For?
The name of my Control is called "Result"
I am trying the following with no luck, maybe because it is the end of the
day?
Dim counter As Integer
counter = 0
Dim ctl As Control
For Each ctl In Me!Result
If IsNull(ctl) Then counter = counter + 1
Next ctl
If counter > 0 Then
MyText = MsgBox("Counters: " & counter, vbCritical, "Test")
End If
Thanks in advance
The name of my Control is called "Result"
I am trying the following with no luck, maybe because it is the end of the
day?
Dim counter As Integer
counter = 0
Dim ctl As Control
For Each ctl In Me!Result
If IsNull(ctl) Then counter = counter + 1
Next ctl
If counter > 0 Then
MyText = MsgBox("Counters: " & counter, vbCritical, "Test")
End If
Thanks in advance