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!

changing multiselect type with radio buttons

Status
Not open for further replies.

Krullms

MIS
Aug 5, 2005
21
US
What I am trying to do is have 2 radio buttons below a list box which lets you select what selection type you want, either simple =1 or extended =2. In the help files it says to just assign the value to the form item.
"To set the MultiSelect property, you can use the following:

Forms("Order Entry").Controls("Country").MultiSelect = 2 ' Extended.
"

So in the afterupdate of my frame i have it set my listbox to 2
Me.lstCompanyName.MultiSelect = 2
but i get an error that says:

Run-time error '2448':
You can't assign a value to this object

I also tried the exact way that it says in the help file and it gives me the same message

Any suggestions?
mike
 
I think the form must be in design view if you want to change that property.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top