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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

loop with objects

Status
Not open for further replies.

dorling

Technical User
Mar 25, 2004
80
GB
hi there

i got the code below that need to put the number in the text box but all my object are 'round 1', 'round 2', 'round 3', all the way to 'round 176', but it is not working???

Code:
For i = 1 To 176
("Round " & i).SetFocus
["Round " & i].Text = i
Next i



thanks in advance

Jonathan D
 
Is this form controls? Try using a fully qualified reference, either with the Me keyword (if it is within the current form) or with Forms("formname")...

[tt]For i = 1 To 176
Me("Round " & i).Value = i
Next i[/tt]

Roy-Vidar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top