Subform Editing problem

B

Bonnie Campbell

I have a tab control on a form that when opened, the form's editing is turned
off by having these properties set:

Me.AllowEdits = false
Me.AllowAdditions = false
Me.AllowDeletions = false

I have a button on the form that when clicked, it turns the editing back on,
by setting these same properties to "true".

This works fine except that there is a subform on one of the tabs, that will
not allow editing, even though I have changes these properties to true. If
these properties are set to true when the form opens, the subform works fine,
but I cannot get it to work the way I want (by allowing edits when the button
is clicked).

Any ideas would be appreciated!

Thanks,
Bonnie
 
P

PJ

I am no expert, but maybe you could try referring to the form by

Me.subformname.Form.AllowEdits = true

Hope that works
 
B

Bonnie Campbell

Sometimes it's the little things that get ya!! It worked great!

Thanks!
Bonnie
 

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