VB 2008: Creare conexiune la o baza de date Microsoft Access 2007

Creare conexiune la o baza de date Microsoft Access 2007

Dim Cnn As New OleDb.OleDbConnection()
Cnn.ConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0; " & _
"Data Source=" & Application.StartupPath & "\data.accdb;" & _
"Persist Security Info=False;"
Cnn.Open()

MsgBox("Connection established!")

Adaugă un răspuns

Your email address will not be published. Required fields are marked *