passthrough flag? on querydef

J

jerryk

Hi,

Does anyone know the best way to determine if a query is a passthrough? I
need to write a routine that lets me update the ODBC Connection string for
all my passthrough queries.
 
R

Rick Brandt

jerryk said:
Hi,

Does anyone know the best way to determine if a query is a
passthrough? I need to write a routine that lets me update the ODBC
Connection string for all my passthrough queries.

If the Connect property is not null then it's a passthrough.
 
J

jerryk

Thanks. However, I don't think this is sufficent test since my code could
set .Connect to ""

I did a bit of testing and I believe that .Type =112 is passthrough.

jerry
 
D

Douglas J. Steele

If Len(qdfObject.Connect & vbNullString) > 0 Then
' it's a pass-through query
Else
' it's not a pass-through query
End If
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top