Disable all controls on a form.

  • Thread starter Thread starter Floyd Forbes
  • Start date Start date
F

Floyd Forbes

Is there a way to disable all controls on a form when the form is open?

Floyd
 
Setting the form's AllowEdits property to No effectively disables all
controls.

If you want to loop through the controls and disable only the bound ones,
grab the code in this article:
Locking bound controls on a form and subforms
at:
http://allenbrowne.com/ser-56.html
The code calls itself recursively so that any level of subform is handled
also.
 
Do you get what you need if you set Allow Edits, Allow Addititions, and
Allow Deletions to No in the form's properties?
 
Thank you.

BruceM said:
Do you get what you need if you set Allow Edits, Allow Addititions, and
Allow Deletions to No in the form's properties?
 

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

Similar Threads

Check boxes. 1
Controls 1
Access Form Refresh 1
How to stop form from automatically scrolling 2
Disable Button on Opening Form 1
How to keep users out when no current record? 1
Enabling Multiple Controls 4
Julian date 1

Back
Top