LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Excel - MS Query - changing location of Access data source

Using Office 2003.
Is there a way to use a macro to update query data source links when the
path to the data source changes?

I created a spreadsheet and use MS Query to get data from a Access database.
All works well.

I move the spreadsheet to another computer that uses a different path to the
Access database and the query fails because it can't find the database - the
dialog that pops up is entitled "MS Access driver LogIn Failed" and the
error text is "Cannot find the file C:\test\testdata.mdb" Locating the
access database in the login dialog that pops up next does not resolve the
issue.

I can manually recreate the query but is seems like I should be able to
store the path to the database in a cell and use a macro to recreate
everything.


 
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
Changing query data source TonyL Excel Discussion (Misc queries) 1 July 4th 07 04:44 PM
Changing ODBC data source for a query embedded in Excel Matt Colegrove Excel Discussion (Misc queries) 4 June 15th 07 01:04 AM
excel chart with data source from an access query rahmad Charts and Charting in Excel 7 January 31st 07 03:55 AM
Changing Query Source Location? Jennifer Crawford Excel Programming 7 August 12th 03 07:43 PM
Changing Query source location? Jennifer Crawford Excel Programming 3 August 8th 03 11:37 PM


All times are GMT +1. The time now is 11:50 PM.

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

About Us

"It's about Microsoft Excel"