OnDirty for continuous forms

A

aardvick

I can't seem to get the OnDirty event to fire when I edit data in a
continuous form. Any ideas?
 
L

Linq Adams via AccessMonster.com

Editing a ***bound*** control on any type of form should cause the OnDirty
event to fire. Editing an ***unbound*** control won't. What exactly are you
trying to do?
 
D

David W. Fenton

I can't seem to get the OnDirty event to fire when I edit data in
a continuous form. Any ideas?

Well, first off, I recommend never editing in continuous forms,
except in a very limited number of circumstances.
 
L

Linq Adams via AccessMonster.com

Well, that's one man's opinion, but it really doesn't address the question of
why something that should be happening (apparently) isn't.
 
D

Dirk Goldgar

aardvick said:
I can't seem to get the OnDirty event to fire when I edit data in a
continuous form. Any ideas?


Are you talking about a particular form that happens to be a continuous
form, or are you observing this behavior on all continuous forms?

Bear in mind that a form's Dirty event fires -- regardless of whether it's
in single-form view or continuous forms view -- only when a record is first
dirtied by user action. If the record is dirtied by code before any user
action to dirty it, then the Dirty event will not fire. So if you have a
bound form on which the Dirty event will not fire, the most likely cause is
that you have code in the form's Current event (or possibly some other
event) that modifies a bound field on the form before the user does anything
to the record.
 

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

Top