ACC2000: BeforeUpdate and AfterUpdate Properties Not WorkingID: Q201088
|
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 are not triggered if the bound control is first 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.
Macro Name Condition Action
---------------------------------------------
TestCityForNull IsNull([City]) MsgBox
... CancelEvent
TestCityForNull Action Arguments
----------------------------------
MsgBox:
Message: City Is A Required Field!
Macro Name Action
------------------------------
SetCityToNull OpenForm
SetValue
SetCityToNull Action Arguments
-------------------------------
OpenForm Action:
FormName: Customers
View: Form
SetValue Action:
Item:[Forms]![Customers]![City]
Expression: Null
City Is A Required Field!
For more information about on event procedures, in the Visual Basic Editor, click Microsoft Visual Basic Help on the Help menu, type "event procedures" in the Office Assistant or the Answer Wizard, and then click Search to view the topic.
Additional query words: before after update ui prb
Keywords : kbusage kbdta FmsEvnt
Version : WINDOWS:2000
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: May 13, 1999