The Disconnect method closes a connection to the data source. This is typically used in the OpenDataSource script of a Database object prior to calling the Connect method to ensure any existing connection is closed before opening a new one.

Syntax

Disconnect() as Boolean

Parameters
None

Return Value
True if the connection was successfully closed, False if not.

Example
See the example in the Connect topic.

See also

Connect | Database Object | OpenDataSource | Select

© Stonefield Software Inc., 2023 • Updated: 06/06/16
Comment or report problem with topic