Share via


Visual Basic: RDO Data Control

WillDissociate Event

See Also    Example    Applies To

Occurs before the connection is set to nothing.

Private Subobject**.WillDissociate**(Cancel as Boolean)

The WillDissociate event syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
Cancel A Boolean expression indicating whether RDO should prohibit the disassociation.

The settings for Cancel are:

Setting Description
True RDO will prohibit the change.
False (Default) RDO will not prohibit the change.

Remarks

This event is raised when the developer attempts to set the ActiveConnection property to Nothing but before the result set is dissociated from the connection.

If you wish to prohibit the dissociation, set the Cancel parameter to True, causing RDO to cancel the operation and trigger a trappable error.

The default value for the Cancel parameter is False, so if the event is not trapped, the dissociation is completed.