CancelError

Returns or sets a value indicating whether an error is generated when the user chooses the Cancel button.

Syntax

object.CancelError [= boolean]

The parts of the CancelError property syntax are described in the following table.

Part Description
object An object expression that evaluates to an object.
boolean A Boolean expression indicating whether an error is generated, as described in Settings.

Settings

The settings for boolean are described in the following table.

Setting Description
True An error is generated.
False (Default). No error is generated.

Remarks

When this property is set to True, error number 32755 (cdCancel) occurs whenever the user chooses the Cancel button.

Data Type

Boolean