For i = 1 to 10
Me.Controls("TextBox" & i).Text = i
Next i

--

HTH

RP
(remove nothere from the email address if mailing direct)


"zsola" <szabozdt@ln.matav.hu> wrote in message
news:242801c5026c$3c8a7e80$a401280a@phx.gbl...
> Hi Experts,
>
> My question is, how can I refer to objects(eg. textboxes)
> in a for..next cycle, for instance something like this:
>
> for i=1 to 10
>
> (textbox & i).text=Cstr(i)
> 'where (textbox & i) is for representing
> 'textbox1...textbox10
>
> next i
>
> Thanks in advance:
> Zsola