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!

Loop thru a DataSet to fill a combo box

Status
Not open for further replies.

dollarbillg

Programmer
Dec 3, 2002
12
0
0
US
How do you loop thru a DataSet to fill a combo Box. The code that I have currently fills the combo box with the value in the data set.

Thanks
 
Try something like

Me.ComboBox1.SetDataBinding(DataSet1, "tblTABLENAME")

Kris
 
Kris,
The .setDataBinding is not a member of System.data.forms.ComboBox is there something that I am missing?
Your Code
.SetDataBinding(DataSet1, "tblTABLENAME")


Dollarbill
 
ComboBox1.DataBinding(DataSet1, "tblTABLENAME")

Then you need to set the TextField and ValueField

Craig
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top