Hi all,
I have a form with a continuous subform for line item entry. I check data input in the Form_BeforeUpdate event. Now, I wanted to have a bailout button on the main form that would cancel processing & clear the form & subform. So I ....
1) Created a module with a global boolean variable that I could set in the main form's "Cancel Button"'s OnClick event. Called CCFglobals.CancelFlag
2) Then I check the global flag in the subform's BeforeUpdate.
OK, this is a mess because the subform's BeforeUpdate happens before the main form's button OnClick. I checked this with stop points in both event subroutines.
Any idea would be appreciated.
Thanks
rafe [sig][/sig]
I have a form with a continuous subform for line item entry. I check data input in the Form_BeforeUpdate event. Now, I wanted to have a bailout button on the main form that would cancel processing & clear the form & subform. So I ....
1) Created a module with a global boolean variable that I could set in the main form's "Cancel Button"'s OnClick event. Called CCFglobals.CancelFlag
2) Then I check the global flag in the subform's BeforeUpdate.
OK, this is a mess because the subform's BeforeUpdate happens before the main form's button OnClick. I checked this with stop points in both event subroutines.
Any idea would be appreciated.
Thanks
rafe [sig][/sig]