I know how to search both a listbox and a combo box for duplicate entries and remove them.

What I would like to do is prevent a duplicate from ever getting entered in the first place.

How would I do that?