Read-only form behaviour

I have a form opening in read-only mode.  That is a change I just made.  On that form is a combo box that allows the user to select a record and then the form used to display that selected record before I made the form read-only.  But since the form is read-only, the combo box doesn't work.  Is there a way to allow the user to use the combo box even though the form is read only?
SteveL13Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dale FyeCommented:
Set the Locked property of all of the controls (except the combo) to Yes, then you can open the form in regular mode and the user will not be able to make edits, but the combo box will work.
0
SteveL13Author Commented:
Is there a way to set the locked property to Yes in the on open event overall or do I have to set them each individually?
0
Dale FyeCommented:
Individually, but if you open the form in design view, you can select each of the data controls anc change all of their locked properties at once.

Or you write a procedure to loop through all of the controls on the form and change their locked property.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
SteveL13Author Commented:
Got it.  Thanks.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.