データベースへの接続を閉じます。
構文
Object.Close()
引数 - Object: 必須。常にADODB Connectionオブジェクトの名前
備考
次の例では、Closeメソッドの使用方法を示します。
例1:
'Create ADODB.Connection Object
Dim ConnObj ' Create a variable.
Set ConnObj = CreateObject("ADODB.Connection")
ConnObj.Open("ConnectionString") 'Creates DB Connection by Using Connection String
'Do all the operations by using ADODB Connection Object based on the requirement
ConnObj.Close()
Set ConnObj = Nothing