G
Guest
What is 'Dirty', I believe that it can be used to save changes to a record
amiga1200 said:What is 'Dirty', I believe that it can be used to save changes to a
record
Dirk Goldgar said:"Dirty" is the name of a property of a bound form. If the form's
current record has been modified but not yet saved, then the form's
Dirty property = True; if not, then the Dirty property = False.
Further, you can use the Dirty property to force a form's record to be
saved. If you set the property to False, then the record will be saved,
if there are no constraints preventing it. The usual way this is done
is with a line of code like this:
If Me.Dirty Then Me.Dirty = False
Why not just this:
Me.Dirty = False
?
It's marginally faster to test if the form is Dirty first, and only set
Dirty = False if the form is in fact Dirty.
--
Dirk Goldgar, MS Access MVP
www.datagnostics.com
(please reply to the newsgroup)
What is 'Dirty', I believe that it can be used to save changes to a record