Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Duplicate Values in a list box

Status
Not open for further replies.

unstoppable

Programmer
Dec 19, 2000
2
US
Hey fellow programmers,

Is there any quick way of checking for a duplicate item inside the listbox before you add it. For example:

Before I add "Text" to the listbox, I want to make sure "Text" is not there already.

Thanx
 
Hi unstoppable,
What VBA program is this?

The reason I ask is that if it's Access, and the rowsource of the listbox is a table or a query, the answer is totally different than if it's set through the List property to an array programmed in, say, Word, or if the rowsource is a range in Excel.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top