ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Relative Queries (https://www.excelbanter.com/excel-discussion-misc-queries/61601-relative-queries.html)

Paul Hammond

Relative Queries
 
I have several OLE DB queries that work just fine. The show a source of
M:\MyNetwork\MyFolder\MyDB.mdb.

Is it possible to make this a relative reference so that it just finds
MyDB.mdb when it resides in the same folder.

TIA,

Paul Hammond

exceluserforeman

Relative Queries
 
Public MpathY as string="M:\MyNetwork\MyFolder\MyDB.mdb"

Put this in module1

MpathY can then be the source word


"Paul Hammond" wrote:

I have several OLE DB queries that work just fine. The show a source of
M:\MyNetwork\MyFolder\MyDB.mdb.

Is it possible to make this a relative reference so that it just finds
MyDB.mdb when it resides in the same folder.

TIA,

Paul Hammond



All times are GMT +1. The time now is 08:30 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com