
Originally Posted by
pratim09
I have 2 combobox in a form . cmb1 and cmb2 . On the cmb1 on change event i am populating the values of cmb2 according to sql query in code. First time the cmb2 values populates correctly .Also on change property of cmb2 populates other values in the form.
The problem is 2nd time when I select cmb1 for some other value the cmb2 retains the values of the first cmb1 search along with the new ones for the recent cmb1 value.Ideally it should show the new values only.
How do i get rid of these. Attached is a sample.