dirty (form vs. control)

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
"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.
 
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 <--
 

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

Similar Threads

Form Dirty Property 1
Form Dirty not firing 10
When does record become dirty? 10
Help with Me.Dirty 2
me.dirty? 6
Access 2007 Form Problem 2
Error message if the form is dirty 1
Print based on control 3

Back
Top