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

Binding form controls to a data source

Status
Not open for further replies.

jmgrin

MIS
Jan 4, 2002
32
0
0
US
I have a form with 30 text controls (controls are named txtitem1 - txtitem30) which I want to bind to fields in a database (database table fields (named item1-item30). Rather than binding each item in a separate statement, I would like to create a collection for these controls and use a "for each" loop. My question is: is there a way of referencing the items in the database by relative position rather than by field name so that I can use the "for each" loop
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top