Me.dirty doesn't work

D

David Howlett

I included the code:

if Me.dirty then
<code>
endif

if the Close event of my form. It returns false all the time.
 
R

Rick Brandt

David Howlett said:
I included the code:

if Me.dirty then
<code>
endif

if the Close event of my form. It returns false all the time.

Without testing it I would guess that the form is updated before the close
event and therefore will never be dirty at that time.
 
S

Sandra Daigle

Hi David,

If you check the order of events on forms you will find that the UpdateEvent
occurs before the Close event so any updates will have already been applied
when the Close event fires.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top