I'm trying to populate a combo box with data from sequential files in Visual Basic, using AddItem method. Visual Basic won't let me
put more than one field in the combo box. My code follows below:
I tied every way I could envision to add more fields to the "cboContacts.AddItem" statement.
VB rejected everything I tried. How can I get more fields in the box?
After getting the fields I want in the combo box I want to add text boxes to the form that refer to the elements of the combo box. (I can do
this in Access by referring to Column(0), Column(1), column(2), etc. How can I do these two things?
The field names have been
'Open file for Input and Load
Open pstrFile For Input As #1
Do Until EOF(1) = True
Input #1, pstrName, pstrStreetAddress, pstrCity, pstrState, pstrZip, _
pstrHomePhone, pstrWorkPhone, pstrExtension, pstrCell, pstrEmail