Hi... I'm trying to add a name of a product to a Textbox...the name of the product is stored in a database. Now there is a Combobox with number in them....1 2 3 ect. Now if you select one of the numbers it must display that product name? I know its probably why off but it would be great if you could help :)
conn.Open
Textbox1.Clear()
myDataSet.Clear
mycommand.Commandtext = "Select Prodcut Name FROM Products WHERE ProductID = '" & ComboBox1.SelectedItem & "' "
mydataAdapter.selectcommand = mycommand
mydataAdapter.selectcommand.Connection = conn
Textbox1.Text = convert.ToString(mydataAdaptor)
conn.close