G
Guest
I am using Access 2002 (ADP with SQL Serever) with a main form, containing
tabs. Two of the tabs contain subforms. I am trying to ensure that the user
cannot add data in the subform if the main form is in add mode, because there
is no ID field (from the main form) to relate to. So I tried using subform
controls on enter event. It works, but only the first time it is used. So I
can disable the subform then, but I cannot re-enable it. The events on the
actual subform (like Activate, Enter and GotFocus), but those don't seem to
fire at all, or at least not reliably as far as I can see. Is there a reason
why these events don't fire on a subform? Could it have something to do with
the Tab control I wonder?
Thanks,
nickpup
tabs. Two of the tabs contain subforms. I am trying to ensure that the user
cannot add data in the subform if the main form is in add mode, because there
is no ID field (from the main form) to relate to. So I tried using subform
controls on enter event. It works, but only the first time it is used. So I
can disable the subform then, but I cannot re-enable it. The events on the
actual subform (like Activate, Enter and GotFocus), but those don't seem to
fire at all, or at least not reliably as far as I can see. Is there a reason
why these events don't fire on a subform? Could it have something to do with
the Tab control I wonder?
Thanks,
nickpup