G
Guest
Is it possible to check if a form has just been closed? I have a form that
has values updated when a related form is closed. I then want to
automatically change other values on the open form. This uses code placed on
a fields before update event which works fine when changed manually but does
not fire when the field is programmatically updated. I have read that I could
call the event in code. I am not sure which event to attach the code to now.
Can I use the got focus event of the form as the second form closes?
Also is it possible to check if the form has just closed and use this as a
condition to run the code so it doesn't run everytime the got focus event
occurs.
I tried to call the before update event in the forms load event to test if
it might work but get an argument not optional error message which I don't
understand. Is there a way to call an event?
I have been really struggling with this and would be very grateful for any
suggestions.
has values updated when a related form is closed. I then want to
automatically change other values on the open form. This uses code placed on
a fields before update event which works fine when changed manually but does
not fire when the field is programmatically updated. I have read that I could
call the event in code. I am not sure which event to attach the code to now.
Can I use the got focus event of the form as the second form closes?
Also is it possible to check if the form has just closed and use this as a
condition to run the code so it doesn't run everytime the got focus event
occurs.
I tried to call the before update event in the forms load event to test if
it might work but get an argument not optional error message which I don't
understand. Is there a way to call an event?
I have been really struggling with this and would be very grateful for any
suggestions.