PC Review


Reply
Thread Tools Rate Thread

Changing the Connect string for QueryDef passthrough queries

 
 
ATD
Guest
Posts: n/a
 
      21st Jan 2010
If I use DAO to update the Connect setting for a QueryDef for a SQL
Passthrough query, what do I need to do to ensure that the new connect string
is used and available in the code that follows?

Currently, the only way that I can get this change to "stick" is to either
manually change the setting or close/re-open Access. As I have thousands of
external databases to attach to (the same tasks are performed on each of
these), neither of these is an option. If I use QueryDefs.Refresh or
something similar, it doesn't seem to make any difference - the change is not
in effect (even though, looking at the properties of the query, the change is
there)

Any suggestions?
 
Reply With Quote
 
 
 
 
ATD
Guest
Posts: n/a
 
      22nd Jan 2010


"ATD" wrote:

> If I use DAO to update the Connect setting for a QueryDef for a SQL
> Passthrough query, what do I need to do to ensure that the new connect string
> is used and available in the code that follows?
>
> Currently, the only way that I can get this change to "stick" is to either
> manually change the setting or close/re-open Access. As I have thousands of
> external databases to attach to (the same tasks are performed on each of
> these), neither of these is an option. If I use QueryDefs.Refresh or
> something similar, it doesn't seem to make any difference - the change is not
> in effect (even though, looking at the properties of the query, the change is
> there)
>
> Any suggestions?

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Building/Storing a passthrough:How to assign connection string andmake passthrough Phil Smith Microsoft Access Queries 3 22nd Apr 2010 01:21 AM
passthrough flag? on querydef jerryk Microsoft Access 3 10th Aug 2006 05:39 PM
Update connect string in queries. =?Utf-8?B?cmljaGFyZGI=?= Microsoft Access VBA Modules 3 19th Feb 2006 07:06 PM
Sub to Auto-refresh Connect string for all pass through queries =?Utf-8?B?cmljaGFyZGI=?= Microsoft Access VBA Modules 1 14th Feb 2006 03:24 PM
QueryDef.SQL Limit? when trying SQL PassThrough Joey Microsoft Access Queries 7 30th Mar 2005 01:28 AM


Features
 

Advertising
 

Newsgroups
 


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