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

On Deactivate or Unload

Status
Not open for further replies.

DoctorJDM

Technical User
Apr 15, 2007
60
GB
Hi

Have an order form whose contents need to be saved if a user hasn't completed all details and/or switches to another window.

Have tried using On Deactivate to put up a warning asking if the record needs to be saved. Only trouble is it's too enthusiastic and triggers if any other command button is clicked (eg print record) or design view is entered.

Ideally the warning should arise only if the user closes the form prematurely or opens another form.

What's best to use?

Thanks
 
It is probably a good thing to save before printing, or you may end up printing old data. Perhaps you can use different events, On Close for example?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top