How to specify relative path to Access 2007 in ADO connection string? [Excel 2007]
|
Excel VBADiscuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
How to specify relative path to Access 2007 in ADO connection string? [Excel 2007]
I wanna connect to Access 2007 database from Excel 2007. When creating ADO connection string, I gotta specify FULL path to database. How to make it RELATIVE?
Sorry. Shasur. I didn't finish my sentence. I knew this method with ThisWorkbook.Path, but I wanted to get to know, can I omit ThisWorkbook.Path if database is located in the same folder with Excel file?