Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 36
Default ODBC driver file path

I know you have probably already thought of this, but if you are using
DSNs to connect, you will need to rebuild the DSN if you moved the
file. Sorry if I am stating the obvious.


On Mon, 9 Jun 2003 20:27:00 -0700, "TOMB"
wrote:

DO! No glory here. Post anywhere else? TB
-----Original Message-----
Ok,

I've been using excel to grab info out of an Access db

via msquery. I've
now moved the db to a different location.

I use the code below to change the query tables

connection string;

Sub ChangeQT()

Dim sh As Worksheet
Dim qt As QueryTable

For Each sh In ActiveWorkbook.Worksheets
For Each qt In sh.QueryTables

qt.Connection = Replace(qt.Connection, "C:", "H:")
Next qt
Debug.Print qt.Connection
' Debug.Print sh.Name
Next sh

End Sub


When I refresh the query it gives an [Microsoft]

[ODBC....] error that it
can't find the driver...[old path].

I'm trying to find out where the path to the driver is

stored so I can
change it?!

Cheers,

Job


.


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
Oracle ODBC Driver Errors Excel GuRu Excel Discussion (Misc queries) 0 May 16th 08 10:05 PM
Driver doesn't support the version of ODBC behaviour [email protected] Excel Discussion (Misc queries) 0 May 7th 08 08:17 AM
Free XML ODBC driver for EXCEL Pete Jones Excel Discussion (Misc queries) 0 March 28th 08 03:42 PM
ODBC Driver/Import Data Andy Excel Discussion (Misc queries) 0 May 12th 05 09:10 PM
xl odbc driver, Excel 2003 johnny_2005 Setting up and Configuration of Excel 0 February 15th 05 10:08 PM


All times are GMT +1. The time now is 10:10 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"