i using this code to load data from accessdatabase to 2 combobox
Dim cmd As OleDbCommand = New OleDbCommand("SELECT product,model FROM combo_table", conn)
conn.Open()
Dim sdr As OleDbDataReader = cmd.ExecuteReader
While sdr.Read()
old_product.Items.Add(sdr.Item("product").ToString)
old_model.Items.Add(sdr.Item("model").ToString)
End While
conn.Close()
conn = Nothing
use can see in this picture hve 2 button, Product Entry and New Product..when i insert new product "Khink "automaticly Stock entry will load new data from accessdabase, but problem is if i go to form Stock Entry, old product in combobox will be double..when i close that form, and open it again, product name "Khink" will be double 2 and samsung,hitachi will be triple..