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

validating list boxes

Status
Not open for further replies.

jimberger

Programmer
Jul 5, 2001
222
0
0
GB
Hi,

I have a list box populated with values.
i want to be able to say if value 6 or 10 is selected along with any other value in the list box then print error

i have so far If lbxBuyingAgencies.Items.FindByValue("6").Selected = True Or lbxBuyingAgencies.Items.FindByValue("10").Selected = True Then

but how do i also say...if any other value is seleted...any body know any neat code that will do the trick?

thanks for your help
jim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top