Reopening a form from the forms on close event 
Author Message
 Reopening a form from the forms on close event

Hello,

I have a form that I written an on close event procedure
for. part of the on close procedure is checking for a
possible error condition that may occur in the
application I have developed. If this error condition
occurs I want to either stop the form from closing or
reopen the form with the same record that is being used.  
When I add the code to reopen the form to the on close
event what is happening is that the form is not being
reopened when I test the error condition happening. I
would like to know if anyone has some ideas on how I can
reopen a form from within the forms on close event?

Thanks

Eric Lommatsch



Sun, 24 Apr 2005 03:08:16 GMT  
 Reopening a form from the forms on close event
Use the Unload event instead, Eric - it can be cancelled by setting the
Cancel argument to True.

--
Brendan Reynolds (MVP)


Quote:
> Hello,

> I have a form that I written an on close event procedure
> for. part of the on close procedure is checking for a
> possible error condition that may occur in the
> application I have developed. If this error condition
> occurs I want to either stop the form from closing or
> reopen the form with the same record that is being used.
> When I add the code to reopen the form to the on close
> event what is happening is that the form is not being
> reopened when I test the error condition happening. I
> would like to know if anyone has some ideas on how I can
> reopen a form from within the forms on close event?

> Thanks

> Eric Lommatsch



Sun, 24 Apr 2005 03:43:16 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Closing a form when other form is opening but reopening when all forms closed

2. reload form without closing and reopening the form

3. Opening form 2 from form 1 - what form/event to close form 1

4. Command to Close and Reopen Sub Form

5. Data will not update unless I close form and reopen

6. Close form and reopen hidden ??

7. Data will not update unless I close form and reopen

8. form property values lost after close/reopen

9. RecordsetClone suddently stops working until the form is closed and reopened

10. form property values lost after close/reopen


 
Powered by phpBB® Forum Software © phpBB Group