T
TK
I have a main form that contains a datasheet subform in
addtion to a 'Close' command button. I have code in the
subform's Form_Unload() procedure to confirm that the form
should be closed, but the main form does not seem to
notice when I set the 'Cancel' property of this procedure
to TRUE.
Is there a way to hold the main form open until the
subform procedure has resolved whether to cancel the
Unload, or does a 'Cancel' condition have to arise in the
same form as the DoCmd.Close method that it cancels?
Thanks in advance,
TK
addtion to a 'Close' command button. I have code in the
subform's Form_Unload() procedure to confirm that the form
should be closed, but the main form does not seem to
notice when I set the 'Cancel' property of this procedure
to TRUE.
Is there a way to hold the main form open until the
subform procedure has resolved whether to cancel the
Unload, or does a 'Cancel' condition have to arise in the
same form as the DoCmd.Close method that it cancels?
Thanks in advance,
TK