JasonPurdueEE
Technical User
Hello everybody.
I have 41 check boxes (named chk1, chk2, chk3...chk41). I'm trying to use a do while loop to go through them all. I have the counter count up from 1 to 41 and I want to append the counter number to the end of the "Me.chk" part. Whats the correct syntax for the Me.chk&Counter part? Thank you.
****************************
Counter = 0
Do While Counter <= 41
Counter = Counter + 1
If Not Me.chk&Counter <> -1 Then
do something here
End If
Exit Do
****************************
JASON
______________________________
Sleep is a poor substitute for coffee.
I have 41 check boxes (named chk1, chk2, chk3...chk41). I'm trying to use a do while loop to go through them all. I have the counter count up from 1 to 41 and I want to append the counter number to the end of the "Me.chk" part. Whats the correct syntax for the Me.chk&Counter part? Thank you.
****************************
Counter = 0
Do While Counter <= 41
Counter = Counter + 1
If Not Me.chk&Counter <> -1 Then
do something here
End If
Exit Do
****************************
JASON
______________________________
Sleep is a poor substitute for coffee.