Code syntac Question

N

NNlogistics

I have a form with rows of unbound txt boxes and I want to address the boxes
in increments of 1. So for examle "txtbox1" , txtbox2 and so on. I Dim an
integer 'intLines" in the 'Open event of the form.
Dim intLines as Integer
intLines = 1

Under certain conditions I want to reference a txt box. Here is my
question. I tried [me.txtbox & intLines] me."txtbox" & intLines ["me.txtbox"
& intLines] and I think every combination (Its called the "Try everything"
coding method). Any suggestions.

I hope that makes sense.

Thanks

Joe
Thanks for any assistance
 
N

NNlogistics

Thanks that works fine!
--
Thanks for any assistance


n00b said:
Use the Controls property of the form. Like this:

Me.Controls("txtbox" & intLines)



I have a form with rows of unbound txt boxes and I want to address the boxes
in increments of 1. So for examle "txtbox1" , txtbox2 and so on. I Dim an
integer 'intLines" in the 'Open event of the form.
Dim intLines as Integer
intLines = 1

Under certain conditions I want to reference a txt box. Here is my
question. I tried [me.txtbox & intLines] me."txtbox" & intLines ["me.txtbox"
& intLines] and I think every combination (Its called the "Try everything"
coding method). Any suggestions.

I hope that makes sense.

Thanks

Joe
Thanks for any assistance
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top