I am trying to use the code below to open the current database. My originial intention was to to store this file that contains the code below in the same directory as the database listed; therefore, not specifying the entire path.
Dim accObj As New Access.Application
accObj.OpenCurrentDatabase "reservecalc tracking tool.mdb"
When the code runs, it looks for this mdb in what every folder the user has their Default Database Folder set to.
Since multiple users have saved this file in different places (different folders on different networks), it returns an error stating "file not found." Is there a way to have it look in the directory where the file containing the opencurrentdatabase command resides?
Dim accObj As New Access.Application
accObj.OpenCurrentDatabase "reservecalc tracking tool.mdb"
When the code runs, it looks for this mdb in what every folder the user has their Default Database Folder set to.
Since multiple users have saved this file in different places (different folders on different networks), it returns an error stating "file not found." Is there a way to have it look in the directory where the file containing the opencurrentdatabase command resides?