The Dirty function in access is not working for a field that is "programaticall y" updated. Is there any solution for that?
How do I make a form in access dirty when a filed is changed programatically?
Collapse
X
-
-
The dirty property cannot be set true by programmatic intervention - unlike setting it false (which saves the current record).
When you set the field value concerned programmaticall y you can set up a value you can test by making use of the rather overlooked Tag property of the control bound to that field, or the tag property of the form itself, to specify that the field has been updated. Using the control's tag property as an example:
Code:Me!YourField = <whatever you do to update the field programmatically> Me!YourField.Tag = "Updated"
Code:If Me.Dirty or Me!YourField.Tag = "Updated" then Me.Dirty = False Me!YourField.Tag = "" End If
Last edited by Stewart Ross; Jul 30 '10, 11:02 PM. -
-
Comment