Gentlefolk,
I have a form (A) that when a specific field is completed, a DLOOKUP is made to determine if the data value entered is in a table. If is it not, I hide form A and open another form (B) to add the data into another table.
Being a nice guy, in this form B, I give the user a chance to return to the main menu in case they have gone deeper than they intended. If they take this option (a command button), I attempt to close form A then B.
Unfortunately, the control that I left form A on has both AfterUpdate and LostFocus VBA code. When closing A from B, these events are executed. Rats!
Can I unulateratly close a hidden form from another form such that it cannot execute any non-executed code.
My thanks in advance for any help. Sorrells
I have a form (A) that when a specific field is completed, a DLOOKUP is made to determine if the data value entered is in a table. If is it not, I hide form A and open another form (B) to add the data into another table.
Being a nice guy, in this form B, I give the user a chance to return to the main menu in case they have gone deeper than they intended. If they take this option (a command button), I attempt to close form A then B.
Unfortunately, the control that I left form A on has both AfterUpdate and LostFocus VBA code. When closing A from B, these events are executed. Rats!
Can I unulateratly close a hidden form from another form such that it cannot execute any non-executed code.
My thanks in advance for any help. Sorrells