Richard Wright said:
I expect it to fire when typing into controls, selecting from combos
and changing to another tab on my multi tab form.
I know its not firing because the properties of a couple of buttons
are not changeing as expected. These are set in the standard sub:
Private Sub Form_Dirty(Cancel As Integer).
(the OnDirty property of the form is correctly set to [Event
Procedure] so I'm flumuxed!)
I wouldn't expect the Dirty event to fire just because you change from
one tab page to another. It should fire when you type into controls or
select from combo boxes, though, provided that those controls are bound.
Set a breakpoint on the Form_Dirty event procedure, then go to form view
and do something that should dirty the form. If code stops at the
breakpoint, you'll know that the event is being raised. Then you can
step through the code and see if the code's execution path differs from
what you'd expect. That would be something else to debug.
--
Dirk Goldgar, MS Access MVP
www.datagnostics.com
(please reply to the newsgroup)