Disconnect Method (ActiveX/CAO)

Disconnects from a data source.

Signature

VBA / VB.NET

object.Disconnect(Datasource)
object

Type: DbConnect

The object or objects this method applies to.

Datasource

Type: String; input-only

The name of a .udl file in the Data Links directory.