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

Textbox names

Status
Not open for further replies.

irlbinky

Programmer
Aug 7, 2002
23
0
0
IE
Hi,
I was wondering if anyone can help me. I have about over 30 textboxes on a form in the following order

1A 2A 3A
1B 2B 3B

and so on with each text box named after it's grid location.
I am reading values in from a database and depending on
1. The value in field1 choose the column,
2. The value in field2 choose the row.

What I was wondering is there any way to insert text into the corresponding box like

txtbox + field1 + field2 = "hello"
i.e. txtbox + 1 + A = "hello" would result in hello being inserted in box 1A.

Any help would be appreciated as it would remove a massive amount of code.

Thanks
Cathal
 
have you considered using a control array for you textboxes? Sunaj
'The gap between theory and practice is not as wide in theory as it is in practice'
 
Thanks, that will work perfectly and cut down a lot of code.

thanks again
Cathal
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top