Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Procedure when exiting a form?

Status
Not open for further replies.

wrbodine

Programmer
Aug 24, 2000
302
US
How would I have a procedure be called when someone closes a form (similar to the way "Private Sub Form_Load" is called automatically when someone opens a form)? I want something that would be automatically called when they click on the X of the top right-hand corner of the form...

Thanks,
Ray
 
Hi,

Use the form's QUERY_UNLOAD event procedure, or its UNLOAD event procedure.

Have a good one!
BK
 
The bottom reply to Thread222-52302 contains a skeleton QueryUnload procedure to intercept the X button. _________________________________
In theory, there is no difference between theory and practice. In practice, there is. [attributed to Yogi Berra]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top