Dim
Cnx As New ADODB.Connection
Dim DBPath As String
DBPath = "C:\TaBase.mdb"
Cnx.ConnectionString = "Driver={Microsoft Access Driver (*.mdb)};Dbq=" & DBPath & ";Uid=Admin;Pwd=;"
On Error Resume Next
Cnx.Open
If Err Then
MsgBox "Erreur lors de l'ouverture de la BDD", vbExclamation
End If
Err.Clear
On Error GoTo 0
MsgBox "Base ouverte avec succès !", vbInformation ':=)
Cnx.Close
Set Cnx = Nothing ,