Chiude la connessione al database.
Sintassi
Object.Close()
Argomenti - Object: obbligatorio. Sempre il nome dell'oggetto ADODB.Connection.
Note
Nell'esempio seguente viene illustrato l'uso del metodo Close.
Esempio 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