Using Option Group to Filter Data

  • Thread starter Thread starter Dick
  • Start date Start date
D

Dick

I have created an option group to filter data on my form. The option
group works great as long as the form is in edit mode. However, I want
to set the form to 'Allowedits = False' until the user clicks an edit
button. Since the form doesn't permit edits the option group doesn't
work. Any suggestions for making this work will be appreciated.
Thanks....
 
You are correct: even if the option group is unbound, you can't use it if
the form's AllowEdits property is No.

Instead, set the Locked property of the other controls on the form. They
cannot be edited if they are locked, but the option group remains usable.

There's some code in this link that locks all the bound controls on the
form, leaving the unbound ones unlocked:
Locking bound controls on a form and subforms
at:
http://allenbrowne.com/ser-56.html
 

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

Back
Top