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

Disable item(s) in list box 2

Status
Not open for further replies.

sdmi

Programmer
Dec 6, 2001
17
US
I need help with disable item(s) in list box. In program user select item from list box. After selection I’d like to disable that selection, therefore use will not able to select same item. However, I still want this item to be visible for user. If you have suggestion, please respond.
 
To disable an entry in a listbox, you just need to start it with a slash (/) character. This is most easily accomplished if the listbox is based on a cursor/table or array. Just make the change and then Requery() the listbox to display the disabled value(s).

Rick
 
Rick

Isn't it a "\" rather than a "/"? Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Yes Mike, once again I've exposed one of my dyslexic tendencies! Thanks for keeping me honest. :)

Sometimes I just try it one way and if it doesn't work, then I'll just switch. It's so much easier than looking it up in the help file. TIC

Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top