G
Guest
On my Main form, I have a Cancel button that closes a subform. If a
particular button (AddID) on the subform has been used (to complete a
particular field), the Cancel button performs additional operations. (The
field can be completed manually, but Cancel doesn't need to perform the
additional operations in that case.) I have code on the subform's
AddID_Click that sets a Boolean variable to tell Cancel that this has
occurred, but the variable seems to have disappeared if I click Cancel. I
have tried Dim and Public delcarations in a standard module and in both form
modules to no avail. The variable does get properly set on AddID_Click, but
the Main form sees the variable as Empty.
I would appreciate come guidance.
Thanks in advance.
particular button (AddID) on the subform has been used (to complete a
particular field), the Cancel button performs additional operations. (The
field can be completed manually, but Cancel doesn't need to perform the
additional operations in that case.) I have code on the subform's
AddID_Click that sets a Boolean variable to tell Cancel that this has
occurred, but the variable seems to have disappeared if I click Cancel. I
have tried Dim and Public delcarations in a standard module and in both form
modules to no avail. The variable does get properly set on AddID_Click, but
the Main form sees the variable as Empty.
I would appreciate come guidance.
Thanks in advance.