Hi there,
I currently have a workbook located in a fixed folder "C:\Program Files\Analysis", which has the following connection string within excel
DSN=FashionPlus;DBQ=C:\Program Files\Analysis"\Reports.MDB;DriverId=25;FIL=MS Access;MaxBufferSize=2048;PageTimeout=5;
This then means that my database is situated above and a normal refresh finds the data and the information and refreshes. This all works correctly.
Fixed paths were also set within access to open up excel and this has also worked correctly. With the ever changing systems, we have found that using "C:\Program Files" may not be ideal anymore. This meant that all fixed paths had to be removed. This was easy to do within access and was successful.
The problem comes in when now trying to automate the path to the access database. This path "C:\Program Files\Analysis"\Reports.MDB" is now no more valid as the access database will no more be located within these folders. There will however be a folder called analysis within the folder that holds the access database. How can I point to that specific database within the connection string. The path to the database is not a fixed path and may change according to the user. I need this to be automated though in that as soon as the excel workbook is opened, the user can just click refresh to get to the correct database and refresh accordingly. Any help would be greatly appreciated
Vineshan
Bookmarks