#1   Report Post  
Posted to microsoft.public.excel.misc
Paul Hammond
 
Posts: n/a
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.misc
exceluserforeman
 
Posts: n/a
Default 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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Relative Ranges in excel macro edself Excel Discussion (Misc queries) 6 October 13th 05 02:02 PM
Relative Ranges in excel macro edself Excel Worksheet Functions 6 October 13th 05 02:02 PM
Moving / Sharing excel files with queries DuncanG Excel Discussion (Misc queries) 0 October 6th 05 09:58 AM
change data source for many queries at once? Sam Raymond Excel Worksheet Functions 0 July 11th 05 04:59 PM
How do i make a macro "relative" to cell? Art Nittskoff Excel Discussion (Misc queries) 4 June 22nd 05 07:05 PM


All times are GMT +1. The time now is 09:58 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"