Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

For Each statement on a tab control

Status
Not open for further replies.

jender624

Programmer
Jul 1, 2003
50
US
Is is possible to loop through a collection of controls only on one tab of a tab control?

This is what I'm trying:

For Each ctlCurrent In tabMain.Pages(2)
'code
next

Access tells me "Object doesn't support this property or method" on the For Each statement. I'd like to avoid looping through all controls on the form if I can.

Thanks!

jender624
 
Never mind, I should have been using:

For Each ctlCurrent In tabMain.Pages(2).Controls

Duh...

Thanks anyway

jender624
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top