コンボボックスでの重複を避けるにはどうすればよいですか?
ユーザーが既存の値から追加または選択できるようにしたい3つのコンボボックスがありますが、既存のアイテムの1つを選択するとアイテムが複製されます
With something
.DataSource = empBindingsource
.DisplayMember = "Employer_Name"
.ValueMember = "Employer_ID"
.DataBindings.Add("selectedValue", job_VacanciesBindingsource, "Employer_ID", False, DataSourceUpdateMode.OnValidation)
End With
With cboDesc
.DataSource = descDataset.Tables("Job_Vacancies").Copy
.DisplayMember = "Job_Description" '
.ValueMember = "Job_ID"
.DataBindings.Add("text", job_VacanciesBindingsource, "Job_Description", False, DataSourceUpdateMode.OnValidation)
End With