Create SQL Pass through Query Dynamically

R

rmcompute

I have been creating queries dynamically in VBA. Up until now they have all
been Select, Append or Insert. I recently created a SQL Pass through query
through the front-end and now would like to create it dynamically in VBA.
What command(s) tell the system that the sql creates a SQL pass through query
instead of the standard query? I am assuming the properties must be somehow
passed contining the connection information.
 
R

Rick Brandt

rmcompute said:
I have been creating queries dynamically in VBA. Up until now they have all
been Select, Append or Insert. I recently created a SQL Pass through query
through the front-end and now would like to create it dynamically in VBA.
What command(s) tell the system that the sql creates a SQL pass through query
instead of the standard query? I am assuming the properties must be somehow
passed contining the connection information.

If you supply a connection string to the querydef that will make it a
passthrough.
 

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