Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Latest commit

 

History

History
33 lines (27 loc) · 837 Bytes

cancel-an-event.md

File metadata and controls

33 lines (27 loc) · 837 Bytes
title ms.prod ms.assetid ms.date
Cancel an Event
access
f91f4f8a-99fa-dca7-576a-11c76d6ddc93
06/08/2017

Cancel an Event

Under some circumstances, you may want to include code in an event procedure that cancels the associated event. For example, you may want to include code that cancels the Open event in an Open event procedure for a form, preventing the form from opening if certain conditions are not met.

You can cancel the following events:

ApplyFilter
BeforeDelConfirm
BeforeInsert
BeforeRender
BeforeUpdate
CommandBeforeExecute
DblClick
Delete
Dirty
Exit
Filter
NoData
Open
Undo
Unload
You cancel an event by setting an event procedure's Cancel argument to True.