updated control values

  • Thread starter Thread starter Eric D.
  • Start date Start date
E

Eric D.

Hi,

Is there a quick way to check if the values of any/all
controls on an UNBOUND form have been modified?

Example:
 
How about using the form's "dirty" property?

If Me.Dirty then
'code to do something
End If


hth,
 
Hey,

Yeah a reference to that property doesn't work. Says
something about being "and invalid reference to property
Dirty".

So any other ideas?
 
You'd need to implement your own form-level property or variable, Eric, and
update it yourself in the AfterUpdate event of each control. The built-in
Dirty property works only with bound forms.

--
Brendan Reynolds (MVP)
http://brenreyn.blogspot.com

The spammers and script-kiddies have succeeded in making it impossible for
me to use a real e-mail address in public newsgroups. E-mail replies to
this post will be deleted without being read. Any e-mail claiming to be
from brenreyn at indigo dot ie that is not digitally signed by me with a
GlobalSign digital certificate is a forgery and should be deleted without
being read. Follow-up questions should in general be posted to the
newsgroup, but if you have a good reason to send me e-mail, you'll find
a useable e-mail address at the URL above.
 
Back
Top