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

REFERENCING DATABASE FIELDS TO TEXT BOXES

Status
Not open for further replies.

TNN

Programmer
Sep 13, 2000
417
US
I'm using Access 2000 database with vb6.0 and I want to somehow reference the fields in a databse to text box indexes on a form. The text boxes are a control array. I want to be able to load the values in the database fields into the text boxes per the text box indexes. The fields will hold values other than the text box indexes.

Anyway to do this????
TNN Tom
 
I'm not sure what you're trying to do...? From your post it sounds like your answer is just to set the DataSource (Adodc1) and the DataField properties for each text box. That will bind each control to each field, and the textboxes will display the info in the field it's bound to. Is that what you're asking? Difference between a madman and a genius:
A madman uses his genius destructively,
A genius uses his madness constructively.
 
The above post was exactly right. just drop down the menu and select which field you wish to plug through the particular text box. rawk.
 
with Recordset (your recordset or table)

txttext(0).text = !name & ""
txttext(1).text = !Adress & ""
txttext(2).text = !Zip
.Close
End With Eric De Decker
vbg.be@vbgroup.nl

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top