B
BBC via AccessMonster.com
Help! how can Me.Dirty be cleared without causing the record to be saved.
In my Form_BeforeUpdate (or wherever is best), when a record is Dirty, I
want to be able to allow to allow the user to, AFTER clicking my form's SAVE
button (also applies to NEXT,... buttons)
1) Save it
2) Not Save it and continue (to next record for example)
3) Cancel the operation all together and stay on the existing record/form and
continue working.
It isn't clear to me what method to use to accomplish this.
For step 1, in my SAVE sub I've tried
Me.Dirty --causes it to go through my From_BeforeUpdate where I ask the
Yes/No/Cancel, or
DoCmd.RunCommand acCmdSaveRecord --would then put the Y/N/C in the SAVE
sub
doing this does not seem to clear Dirty (or DoCmd.GoToRecord
, "", acNext)
Is that really true?
Both of these methods create problems with the Don't Save and Cancel methods.
Now matter what I've tried I seem to get tangled up in the Dirty flag, It
seems if I can clear Dirty maybe I can get past this.
Anyone have a good example I could follow
Thanks all
In my Form_BeforeUpdate (or wherever is best), when a record is Dirty, I
want to be able to allow to allow the user to, AFTER clicking my form's SAVE
button (also applies to NEXT,... buttons)
1) Save it
2) Not Save it and continue (to next record for example)
3) Cancel the operation all together and stay on the existing record/form and
continue working.
It isn't clear to me what method to use to accomplish this.
For step 1, in my SAVE sub I've tried
Me.Dirty --causes it to go through my From_BeforeUpdate where I ask the
Yes/No/Cancel, or
DoCmd.RunCommand acCmdSaveRecord --would then put the Y/N/C in the SAVE
sub
doing this does not seem to clear Dirty (or DoCmd.GoToRecord
, "", acNext)
Is that really true?
Both of these methods create problems with the Don't Save and Cancel methods.
Now matter what I've tried I seem to get tangled up in the Dirty flag, It
seems if I can clear Dirty maybe I can get past this.
Anyone have a good example I could follow
Thanks all