Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
Public objConn As New ADODB.Connection Sub DBConnectionAccess() If CBool(objConn.State And adStateOpen) Then objConn.Close Dim strPathToDB As String 'open connection to Access database strPathToDB = "C:\MyTest\Database\test.accdb" objConn.Open "Provider = Microsoft.ACE.OLEDB.12.0;" & "Data Source=" & strPathToDB Exit Sub End Sub
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.