hi, im my database there are COUNTRY NAMES and its CAPITAL, my problem is using adodc1.recordset if i selected a country in combo1 the label1.caption beside the combo1 will change into its capital.

example

Combo1[PHILIPPINES] : Label1[MANILA]

can u help me thanks advance :)

When you load the combo box items do you load both country and capitals? I think there is a combo box property where you can associate something with each of the items in the list. If so then in the OnItemSelect event handler get the name of the capital and put it in the label.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.