From: alex on
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