ACC: Toggle Button with BeforeUpdate Set to CancelEventLast reviewed: May 27, 1997Article ID: Q90142 |
The information in this article applies to:
SYMPTOMSModerate: Requires basic macro, coding, and interoperability skills. On a form, a toggle button with the BeforeUpdate property set to a macro that performs the CancelEvent action behaves differently than a text box with the same BeforeUpdate property setting.
CAUSEText boxes have a state in which they hold a dirty value that cannot be saved or validated. This is why you can click a text box and, without making a change, move to another control. Toggle buttons do not have a static state holding a dirty value that cannot be validated. When the CancelEvent occurs, the button is left in its original, raised state. The button code does not consider the button to be dirty after the save failed. It has the original clean value.
STATUSThis behavior is by design.
MORE INFORMATION
Steps to Reproduce BehaviorThe method outlined below uses the sample database Northwind.mdb (or NWIND.MDB versions 1.x or 2.0)
|
Keywords : FmsHowto kbusage
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |