P
polman
Ok. For one more time I need your help.
I have a form and a subform in it. On after update event on both (form
and subform) I added the simplest thing I could think: Me.AllowEdits =
False. In both I added a button with on click event Me.AllowEdits =
True. That is working the way I want for the records already in the
database. (That is, when the user click on the button can edit the
field on form or subform and when is done (afterupdate) the form's
AllowEdit is set again to false). Well! I almost did it! But NO!
When I try to add a new record on main form the subform is
disappeared... After some search I found out that besides the
AllowEdits property of the subform it was set to False the
AllowDeletions and AllowAdditions properties (When I change them to
True the form is appearing again).
Could please someone explain to me what is happening here? Do I have to
add additional code or something else I did not understood.
P.S. I also tried the code of Allen Browne
http://allenbrowne.com/ser-56.html with the same results (but this
probably because I did not implement it right).
I have a form and a subform in it. On after update event on both (form
and subform) I added the simplest thing I could think: Me.AllowEdits =
False. In both I added a button with on click event Me.AllowEdits =
True. That is working the way I want for the records already in the
database. (That is, when the user click on the button can edit the
field on form or subform and when is done (afterupdate) the form's
AllowEdit is set again to false). Well! I almost did it! But NO!
When I try to add a new record on main form the subform is
disappeared... After some search I found out that besides the
AllowEdits property of the subform it was set to False the
AllowDeletions and AllowAdditions properties (When I change them to
True the form is appearing again).
Could please someone explain to me what is happening here? Do I have to
add additional code or something else I did not understood.
P.S. I also tried the code of Allen Browne
http://allenbrowne.com/ser-56.html with the same results (but this
probably because I did not implement it right).