getting code on subform to run before main form (1 Viewer)

GezB

New member
Local time
Today, 08:43
Joined
Jun 27, 2002
Messages
5
Hello,

Can anyone help me with this problem?

I Have a form with a subform where I want some code to run after exiting a control on the subform. However if I exit the control by clicking on a command button on the main form the on_click procedure seems to run before the on_exit procedure for the control!
How do I force the on_exit procedure to run first?

Gez
 

cogent1

Registered User.
Local time
Today, 16:43
Joined
May 20, 2002
Messages
315
Convert your on_exit event to a function in a standard module. Call it from either the on exit event of the control on yr. subform or make a call to it from the first line in the command button's code.
 

GezB

New member
Local time
Today, 08:43
Joined
Jun 27, 2002
Messages
5
Thanks,

I will give this a try today.

Gez
 

Users who are viewing this thread

Top Bottom