Unbound Edit Box OnDirty Event Not Firing, OnChange Throwing Error

H

HumanJHawkins

I have an unbound Edit Box in a subform. I have created an "OnDirty"
event for it. However, typing into the edit box does not trigger this
event. Nor does typing, then changing focus, etc. Can anyone say why
this would be?

Related FYI, I tried just using the OnChange event to work around the
issue. However, even when I get properties for the unbound edit box
and create a new OnChange event (so Access takes me right to the VB
editor with a Private Sub already made and named for me), I get "The
expression On Change you entered as the event property setting
produced the following error: Procedure declaration does not match
description of event or procedure having the same name."

Searching the entire project, there is no other case of a function or
sub with this name, so it is not a duplicate function issue.

Thanks in advance for any assistance.
 
G

Guest

The OnDirty event will not fire on Unbound controls.

Did you change something in your procedure declaration?
What do you have as the OnChange event property?
 
G

Guest

As SteveM says, the Diry event is one that does not fire for unbound controls.
The Change event should be used very sparingly. It fires after every
keystroke, because after each keystroke the value of the control changes. I
suggest you use the After Update event.
 
H

HumanJHawkins

The OnDirty event will not fire on Unbound controls.

Did you change something in your procedure declaration?
What do you have as the OnChange event property?

Thanks for the OnDirty info.

Yes... I apparently did make a change that I forgot about... Deleting
the whole (short) function and remaking it resolved the OnChange
issue. Sorry.
 

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