You can use the ConnectionString property returns the base connection string for the DataAccessPage object.
Setting
The ConnectionString property is available only by using Visual Basic and is read-only.
Remarks
The ConnectionString property returns the connection string that was set through the OpenConnection method or by clicking Connection on the File menu. When making a connection, Microsoft Access project modifies the ConnectionString property for use with the ADO environment. The Microsoft Office Data Source Control (MSODSC) likewise modifies the ConnectionString.