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

ComboBox can't bind to field

Status
Not open for further replies.

emeryp

Programmer
Feb 2, 2003
25
US
Hello everyone,
I'm getting an error that the combobox can't bind to the datafield. I have an ADO that is the datasource for this combobox. I am not doing anything else to populate the box, is this the correct way to populate a combobox?
 
you have to set the combo box's datasource..heres what I do.

Set ComboBox.DataSource = rs

If rs.EOF = False Then
rs.MoveFirst
While rs.EOF = False
ComboBox.AddItem rs.Fields("Field")
rs.MoveNext
Wend

You may want to post your code.



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top