I have a form with a set of 20 Command Buttons and 20 unbound Text box's.
tbP1, tbP2, tbP3 - 20
cbP1, cbP2, cbP3 - 20
dim counter as integer
while counter <21
if isnull(me.tbP(counter)) then
me.cbP(counter).Visible = False
sCurrValue = me.tbP(counter)
How do I correctly make me.tbP"Counter" the same as me.tbP1 -20 for each loop.
I know that I can create 20 if then's, but this list grows and shrinks at different site.
I need to replace the Number in the me.name with the current counter value, I hope I am clear with this question.
Thank you Experts