G
google3luo359
I've Googled many threads on this topic in formscoding and there is a
wealth of information on the subject. However I am still left
scratching my head about a few things.
First off, it seems that the undocumented way of explicitly saving a
record on a form is with the following code:
If Me.Dirty Then Me.Dirty = False
I'd like to understand it. I understand the first part, If Me.Dirty
Why does Me.Dirty = False save the record?
What is the logic behind it? Why does it work?
I have a few forms where, presently, the only saving mechanism I have
is
Do.Cmd Close.
It's working, but then again it's just me on the db. When the db will
be completed there will be 50+ users having the back-end open at the
same time and saving their data at various times.
I want to be sure that I have the best/safest code in place to save
their data.
Should I just leave my Do.Cmd Close to close the form, or use an
explicit save with
If Me.Dirty Then Me.Dirty = False ?
I'm using Access 2000.
TIA Ric
wealth of information on the subject. However I am still left
scratching my head about a few things.
First off, it seems that the undocumented way of explicitly saving a
record on a form is with the following code:
If Me.Dirty Then Me.Dirty = False
I'd like to understand it. I understand the first part, If Me.Dirty
Why does Me.Dirty = False save the record?
What is the logic behind it? Why does it work?
I have a few forms where, presently, the only saving mechanism I have
is
Do.Cmd Close.
It's working, but then again it's just me on the db. When the db will
be completed there will be 50+ users having the back-end open at the
same time and saving their data at various times.
I want to be sure that I have the best/safest code in place to save
their data.
Should I just leave my Do.Cmd Close to close the form, or use an
explicit save with
If Me.Dirty Then Me.Dirty = False ?
I'm using Access 2000.
TIA Ric