I have worked through the open syntax to open a database from VBA, but the database does not appear to actually open. Here is the code:
Dim MyConn As ADODB.Connectio n
Dim MyRecordSet As ADODB.Recordset
Set MyConn = New ADODB.Connectio n
MyConn.Connecti onString = "Provider=Micro soft.ACE.OLEDB. 12.0; Data Source=c:\Tools \Test_DB.accdb; Persist Security Info=False;"
MyConn.Open
I have opened up the Windows Task Manager to watch and see if another instance of Access opens when this code executes, but it does not appear to.
How do I make the newly opened DB actually open and be visible? Inother words, I want the new DB to open and go to the default form as if I double-clicked on the Access icon. Thx
Dim MyConn As ADODB.Connectio n
Dim MyRecordSet As ADODB.Recordset
Set MyConn = New ADODB.Connectio n
MyConn.Connecti onString = "Provider=Micro soft.ACE.OLEDB. 12.0; Data Source=c:\Tools \Test_DB.accdb; Persist Security Info=False;"
MyConn.Open
I have opened up the Windows Task Manager to watch and see if another instance of Access opens when this code executes, but it does not appear to.
How do I make the newly opened DB actually open and be visible? Inother words, I want the new DB to open and go to the default form as if I double-clicked on the Access icon. Thx
Comment