Click to See Complete Forum and Search --> : combobox with database


kvlee
February 20th, 2003, 03:38 AM
Hi

I have a database which contains "ID" and "Name" as two elements. Now I want the combox to read the data from ID and as I select the different value from the combobox the data of "Name" will changing in a textbox.

can anyone help me with this?

Thank you very much.

SteveNihan
February 20th, 2003, 10:21 AM
You need to bind the controls to a dataset. This might help a little:

if you have MSDN, or Visual Studio.NET

ms-help://MS.VSCC/MS.MSDNVS/vbcon/html/vbwlkwalkthroughdisplayingdatainwindowsformusingparameterizedquery.htm