G
Guest
Thanks for taking the time to read my question.
Question 1: how do I determine the position or control number of a control
on a form. I can type in me.controls(1) and it will go somewhere, but I'd
like the code to put in the "1" for me. Something like me.controls.number???
Question 2: I'd like to cycle through all the controls on a form where the
Tag <> "Skip"
Code:
For Each c In Me
Debug.Print c.Tag
If c.Tag <> "Skip" Then
Debug.Print c
Me.Controls(c).BackStyle = 1
Debug.Print c
End If
Next
c starts off as 1, but then goes to -1 which is not on the form. What am I
doing wrong?
Thanks,
Brad
Question 1: how do I determine the position or control number of a control
on a form. I can type in me.controls(1) and it will go somewhere, but I'd
like the code to put in the "1" for me. Something like me.controls.number???
Question 2: I'd like to cycle through all the controls on a form where the
Tag <> "Skip"
Code:
For Each c In Me
Debug.Print c.Tag
If c.Tag <> "Skip" Then
Debug.Print c
Me.Controls(c).BackStyle = 1
Debug.Print c
End If
Next
c starts off as 1, but then goes to -1 which is not on the form. What am I
doing wrong?
Thanks,
Brad