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

deselect listbox radio buttons

Status
Not open for further replies.

OnLiner

Technical User
Dec 4, 2002
87
US
Greetings,
I found two similar subjects but the methods didn't work which were...

Set the listindex property to -1.
list1.clear

I have a list box with a value list and an option group with two radio buttons. both controls are unbound. I'd simply like to have a "clear" button deselect anything selected in the list box and reset the option group so the radio buttons are 'gray'

thanks for your help!!
 
have u tried null?


Ian Mayor (UK)
Program Error
Programming is 10% coding and 90% error checking.
 
khewl works for the option group thanks :)

*doesn't work for the list boxes though...
 
Have you tried this ?
strValues = Me!List1.RowSource
Me!List1.RowSource = ""
Me!List1.RowSource = strValues

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
its a beautiful thing...

Thanks worked like a charm
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top