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

Combo Box/ListBox code identical, but don't work?

Status
Not open for further replies.

jfrost10

Programmer
Jun 3, 2001
2,004
CA
Hey guys,

OK, is there something different between the combo box and list box that differs in the way you bind things to them?

Here's my code I use for both:
With SkillCategoryDropDown
.DataSource = m_sCat.SelectSkillCategoryList
.DisplayMember = "Description"
.ValueMember = "ID"
End With

Both my combo box (drop down list) and list box have the same datasource and hte same display member and the same value member. Totally identical

But when I bind to the combo box, I get an error saying "Cast from type DataTypeView cannot be cast to type Integer", but it doesn't give me this error for the list box.

any thoughts?

Thanks,

D'Arcy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top