You can use the BaseConnectionString property returns the base connection string for the CurrentProject or CodeProject object.
Setting
The BaseConnectionString property is available only by using Visual Basic and is read-only.
Remarks
The BaseConnectionString 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 BaseConnectionString property for use with the ADO environment.