LIST BOX

  • Thread starter ashraf_al_ani via AccessMonster.com
  • Start date
A

ashraf_al_ani via AccessMonster.com

Dear All
I have a list box that previhe listews valuse 1,4,5,6...

is there a way to apply a condition to this list by saying
if one value of the list box is 1 then do a condition??
or if the list has a value 4 then do another condition??


i mean i want to apply a conditions to the listbox according to its values

best regards
 
B

BruceM via AccessMonster.com

Select Case Me.ListBoxName
Case 1
' Do something
Case 4
' Do something else
Case 5
' Do another thing
etc.
End Select

However, this is not practical if there are many possible choices, in which
case it would depend in part on what you want to do, and the connection
between the list box values and that action.

By the way, "previhe listews valuse" is not meaningful.
 
L

Linq Adams via AccessMonster.com

Also note that Bruce's code would go in the Listbox AfterUpdate event.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top