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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Prevent pfc_validation on Close ?

Status
Not open for further replies.

power97

Programmer
Sep 17, 2003
67
CA
Hi,
I have a window with a close button that calls the pfc_close event. However , when it does that it also calls the pfc_validation events on my user objects which causes the validation errors to display before the "You have unsaved changes ..." message. This isn't what I want.
I would like to ask the user first if they want to save changes and if they don't , skip the validation. However , the only way I have found to do this is to write my own code in the closequery event and override the ancestor. Am I doing this wrong ??

Thanks

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top