Norbert-
You can't. The Unload event fires whenever the form is being closed - with a DoCmd.Close or by clicking the X.
John Viescas, Author
Microsoft Access 2010 Inside Out
Microsoft Access 2007 Inside Out
Microsoft Access 2003 Inside Out
Building Microsoft Access Applications
SQL Queries for Mere Mortals
(Paris, France)
On Dec 13, 2014, at 5:32 PM, drnorbert@msn.com [MS_Access_Professionals] <MS_Access_Professionals@yahoogroups.com> wrote:
John,
When I add the MsgBox to the Unload event procedure is working however is also working when the cmdClose command is clicked then:
How do can I differentiate when the form closes with the X click vs the cmdClose?
Please see my response to Bill perhaps the form is corrupted.
Norbert
__._,_.___
Posted by: John Viescas <johnv@msn.com>
Reply via web post | • | Reply to sender | • | Reply to group | • | Start a New Topic | • | Messages in this topic (14) |
.
__,_._,___
Tidak ada komentar:
Posting Komentar