Dirty Question

A

alex

Dirty Question

Hello,

I have a question about the Dirty property/event…

The following code will evaluate to False (which makes sense) when the
record changes:
-----------
Private Sub Form_Current()
Debug.Print Me.Dirty
Call IsRecordDirty
End Sub

The following code will evaluate to True (which does not make sense to
me) when the record changes:
--------------
Private Function IsRecordDirty() 'tied to the on dirty event of all
text/combo boxes
Debug.Print Me.Dirty
End Function

In the Immediate Window I see:
False
True

Next Record:
False
True

Why is me.dirty false in one sub and true in another sub/function when
nothing changes?

Thanks,
alex
 

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