B
BBC via AccessMonster.com
After having read many "Dirty" problems I did not see my particular issue so
looking for help.
I have a subform where I enable/disable my own navigation controls (next,
prev., undo, delete, ...) via my own "dirty" routine which is normally
triggered by the Form_Dirty event. However, while the Form_Dirty event fires
properly when editing existing records is does not fire when editing a NEW
record which has just been added via:
DoCmd.GoToRecord , "" ,acNewRec
I do initialize some controls/textboxes/combos on the form via VBA code and
some have their default values set in their properties. None of these seem
to fire the F_D event (and don't expect them to). I'd prefer to use the forms
dirty event than have to put some code in every control & TB on the form to
call MY dirty routine (which I already do some of for those set via VBA).
Exactly the same (private) code is used to manage the dirty event on my main
form and it works fine.
The subform is PopUp & Modal
Help or suggestions appreciated.
looking for help.
I have a subform where I enable/disable my own navigation controls (next,
prev., undo, delete, ...) via my own "dirty" routine which is normally
triggered by the Form_Dirty event. However, while the Form_Dirty event fires
properly when editing existing records is does not fire when editing a NEW
record which has just been added via:
DoCmd.GoToRecord , "" ,acNewRec
I do initialize some controls/textboxes/combos on the form via VBA code and
some have their default values set in their properties. None of these seem
to fire the F_D event (and don't expect them to). I'd prefer to use the forms
dirty event than have to put some code in every control & TB on the form to
call MY dirty routine (which I already do some of for those set via VBA).
Exactly the same (private) code is used to manage the dirty event on my main
form and it works fine.
The subform is PopUp & Modal
Help or suggestions appreciated.