ACC: Toggle Button with BeforeUpdate Set to CancelEvent (90142)
The information in this article applies to:
- Microsoft Access 1.0
- Microsoft Access 1.1
- Microsoft Access 2.0
- Microsoft Access for Windows 95 7.0
- Microsoft Access 97
This article was previously published under Q90142
Moderate: Requires basic macro, coding, and interoperability skills.
SYMPTOMS
On a form, a toggle button that has its BeforeUpdate property set to a
macro that carries out the CancelEvent action behaves differently than a
text box that has the same BeforeUpdate property setting.
CAUSE
Text 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.
STATUS
This behavior is by design.
Modification Type: | Major | Last Reviewed: | 5/9/2003 |
---|
Keywords: | kbprb kbusage KB90142 |
---|
|