Lock Form and all sub-forms

  • Thread starter Thread starter QB
  • Start date Start date
Q

QB

I am using a criteria to allow changes to a form or not.

That said, I used Me.AllowEdits = True or False, but the user can still make
changes in the sub-forms?

How can I lock and unlock the form including all the subforms?

Thank you for the help,

QB
 
try

Me.subformcontrol.Form.AllowEdits = False

In relation, Allen Browne has a nice routine for doing this, but rather than
all controls, it locks all bound controls (leaving search fields, etc,
usable).

http://www.allenbrowne.com/ser-56.html

hth
--
Jack Leach
www.tristatemachine.com

"I haven't failed, I've found ten thousand ways that don't work."
-Thomas Edison (1847-1931)
 
try

Me.subformcontrol.Form.AllowEdits = False

In relation, Allen Browne has a nice routine for doing this, but rather than
all controls, it locks all bound controls (leaving search fields, etc,
usable).

http://www.allenbrowne.com/ser-56.html

hth
--
Jack Leach
www.tristatemachine.com

"I haven't failed, I've found ten thousand ways that don't work."
-Thomas Edison (1847-1931)
 

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


Back
Top