List box, multiselect

T

TRM

I would like to programatically change a listbox
from "multiselect" to "standard" depending on how/what
the circumstances are. I'm getting an error that the
property cannot be updated (something similar).

Any ideas?

THANKS!
 
R

Ron Weiner

Sorry you cant do that. Access help clearly says that the MultiSelect
property can only be changed in Form Design.

You might want to consider having 2 listboxes on MultiSelect and the other
not both with the same RowSource, and flip their visibility as desired.
While this might be a little messy, it is doable.

Ron W
 
T

TRM

Thanks. I thought I saw in the help file that it could
be set in VB. Must have been something else. THANKS!
 
R

Ron Weiner

You CAN set this property programmatically with VBA BUT you have to open the
form in Design Mode to do it.

DoCmd.OpenForm "xxx" ,acDesign

Ron W
 

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