on dirty event

L

Linda

I have a form in which I'm trying to use the on dirty event to activate a
couple of command buttons. However, the event never fires, I put a break
point on the subroutine and it doesn't get there. Any ideas as to what I may
need to do to get this to work? I have another form and it works fine but I
don't know what is different here.
Thanks!
 
D

Dirk Goldgar

(re-posting, as my original reply hasn't appeared)

Linda said:
I have a form in which I'm trying to use the on dirty event to activate a
couple of command buttons. However, the event never fires, I put a break
point on the subroutine and it doesn't get there. Any ideas as to what I
may
need to do to get this to work? I have another form and it works fine but
I
don't know what is different here.
Thanks!


One possibility: the Dirty event will not fire if the form is initially
dirtied by code; only if it is dirtied manually. So if you have code
running that dirties the form before you type in or click on anything, that
could be the cause.

Another possibility: the Dirty event won't ever fire for an unbound form.
Is your form unbound?
 

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


Top