ACC: BeforeUpdate and AfterUpdate Field Properties Not WorkingID: Q100134
|
Moderate: Requires basic macro, coding, and interoperability skills.
The macro or function attached to the BeforeUpdate or AfterUpdate
property of a bound control does not run when expected.
The BeforeUpdate and AfterUpdate events of a bound control will not be triggered if the bound control was modified by a macro or by code.
You can work around this behavior by causing the macro or code that modifies the bound control to manually trigger the event pointed to by the BeforeUpdate or AfterUpdate property of the bound control.
This behavior is by design.
Macro Name Condition Action
----------------------------------------
TestCityForNull IsNull([City]) MsgBox
... CancelEvent
TestCityForNull Actions
-------------------------------------
MsgBox:
Message: City Is A Required Field!
Macro Name Action
--------------------
SetCityToNull OpenForm
SetValue
SetCityToNull Actions
---------------------
OpenForm Action:
FormName: Customers
View: Form
SetValue Action:
Item:[Forms]![Customers]![City]
Expression: Null
City Is A Required Field!
For more information about the order of event properties, search for "Event procedures," and then "order of events" using the Microsoft Access 97 Help Index.
Additional query words: before after update ui
Keywords : kbusage FmsEvnt
Version : 1.0 1.1 2.0 7.0 97
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: March 24, 1999