dirty (form vs. control)

D

Daniel

Good morning,

I was hoping someone could confirm my understanding of the ‘dirty’ property
and usage.

When I use Me.dirty =false within a control in a form, I am only saving that
control’s data???

I need to explicitly use something along the lines of
forms![].Form.dirty=false if I want to ensure that all the changes made on a
form are saved?

Thank you,

Daniel
 
A

Allen Browne

"Me" refers to the form.

Therefore, the code:
Me.Dirty = False
saves the record, i.e. changes in any bound controls are written to the
table.
 
S

Stefan Hoffmann

hi Daniel,
Good morning,
Thanks, but it's late afternoon here in Bavaria.
When I use Me.dirty =false within a control in a form, I am only saving that
control’s data???
No. The data is only saved when the entire record is saved.
I need to explicitly use something along the lines of
forms![].Form.dirty=false if I want to ensure that all the changes made on a
form are saved?
Yes,

Me.Dirty = False

or

Forms![].Form.Dirty = False

saves the entire record.


mfG
--> stefan <--
 
Top