Combo Boxes

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to populate a combo box with information from a table in an Oracle Database. Here is the information I have:

OLEDBCONNECTION: OleDbConnection
OLEDBDATAADAPTER: daModel
Dataset: ds_Model

There are 2 columns in the table I am trying to query: Model_ID and Descriptio

The name of my combo box is: cbo_Model

I want to populate the combobox (cbo_Models) with the values in the Description field (from the table SERVER_MODEL

Does anyone know how to do this? Could you please help me out? Hopefully I have provided you with sufficient details. If you need more, however, I am very willing to do anything I can to figure this out

I appreciate any feedback

Reese
 
cbo_Models.DataSource = ds_Models.tables(0) 'or the table you need...
cbo_Models.ValueMember = "Model_ID"
cbo_Models.DisplayMember = "Description"

..selectedItem returns the row of you table which is selected
..selectedValue returns the value of Model_ID column for the selected row



dominique

Reese said:
I am trying to populate a combo box with information from a table in an
Oracle Database. Here is the information I have:
OLEDBCONNECTION: OleDbConnection1
OLEDBDATAADAPTER: daModels
Dataset: ds_Models

There are 2 columns in the table I am trying to query: Model_ID and Description

The name of my combo box is: cbo_Models

I want to populate the combobox (cbo_Models) with the values in the
Description field (from the table SERVER_MODEL)
Does anyone know how to do this? Could you please help me out? Hopefully I
have provided you with sufficient details. If you need more, however, I am
very willing to do anything I can to figure this out.
 
Back
Top