I am trying to find all of the Textboxes in my form, but its not working. How do I do this?
VB Code:
dim TXBX as textbox for each txbx in me.controls msgbox "HERE's ONE!" next
Thanks,
Sir Loin
Printable View
I am trying to find all of the Textboxes in my form, but its not working. How do I do this?
VB Code:
dim TXBX as textbox for each txbx in me.controls msgbox "HERE's ONE!" next
Thanks,
Sir Loin
i would do it like this.
VB Code:
Dim ctr As Control For Each ctr In Me.Controls If TypeOf ctr Is TextBox Then MsgBox "HERE's ONE!" End If Next ctr
casey.
Oh, i didn't think about doing it like that...thanks!