>A "dirty" record is one which has unsaved changes in it. Setting Dirty to False
>forces those changes to be committed in order to make the record "clean".
>> A "dirty" record is one which has unsaved changes in it. Setting
>> Dirty to False forces those changes to be committed in order to make
[quoted text clipped - 6 lines]
> when the next form is called - unless I take some additional manual
> action. Not ideal, but acceptable and perhaps even logical.
It would automatically save if you closed the form displaying the dirty
record or moved to a different record. Opening a completely different form
though would not cause anything to happne on the first form. If you think
about it there would be LOTS of sitiuations where that would be undesired
behavior.
> Next
> though, you'd think I would have to set the property to "dirty" to
> cause Access to force a write - instead I set it to "not dirty" and
> Access writes it.
Not if you realize that "dirty" means "contains unsaved changes".
> Strange, almost "WTF?". Third, changing a property
> causes a method to execute? Another "WTF?" Finally, what would you do
> if you want to intentionally discard changes, since setting the
> property to "not dirty" causes a write?
You would issue the Undo method on the form...
Me.Undo
> I admit to not knowing much about this area... but it doesn't seem
> like an engineer with object oriented experience designed this :-)
[quoted text clipped - 4 lines]
> actually changed - but Why would setting a property of an object
> cause a method to be executed?
That is a bit unorthodox, but as you say "it works". As I posted earlier
you can also use...
DoCmd.RunCommand acCmdSaveRecord
I prefer Me.Dirty = False for two main reasons...
1) It's less to type.
2) The SaveRecord command will operate on whatever form has focus and in
some circumstances that will not be the form running the code. With
Me.Dirty = False I know exactly which form is having the save applied.

Signature
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com
+Bob+ - 13 Jun 2007 16:24 GMT