Variables when referring to object names

darkmastergyz

Registered User.
Local time
Today, 13:13
Joined
May 7, 2006
Messages
85
Hi! I have a few objects:

txtLabel1
txtLabel2
txtLabel3
.
.
.
They're all are incrementing in that order, so is there a way I can do the
me.txtLabel[number here], through a variable.

so, for example, var_num = 3
me.txtLabel + var_num (except that doesn't work)

How can I do that? Thanks.
 
Me.Controls("txtLabel" & var_num) or just
Me("txtLabel" & var_num)
 

Users who are viewing this thread

Back
Top Bottom