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

Listbox - can you return the ItemData if you know the assoc value?

Status
Not open for further replies.

Wrathchild

Technical User
Aug 24, 2001
303
US
Say I have the following values in a listbox:
ABC
BCD
CDE

Is there a way for me to supply "CDE" and get the return ItemData of 3?

I'm not looking to iterate thru the entire value list, was just wondering if there's a way to do it using the built-in listbox parameters.

thx
 
A starting point:
Me![list box] = "CDE"
MsgBox "ListIndex of 'CDE' is " & Me![list box].ListIndex

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Thanks PHV, but I'm trying to do this with no selection being made.
 
I see what you're getting at now, I'm playing around with it now...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top