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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Preventing a duplicate entry

Status
Not open for further replies.

Domino2

Technical User
Jun 8, 2008
475
GB
I have a search textbox that progressively fills a listbox with company names which are LIKE the search text being entered. During this time, a command button becomes active allowing the user to add a new company. However I want the button disabled if the listbox narrows down to one item, and matches what the user has entered. In other words when the listcount moves to having one item in it, is there a covert way to examine a match between the listitem and the text in the searchbox? Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top