G
Guest
Hi,
I would like to send queries straight to the Oracle database that I am
connecting to. I do not want Access to process it since they seems to be a
lot faster when I use a pass through query. However, I want to use variables
in the SQL statements which I dont believe pass through queries will work.
So I want to use vba code to send the queries through and then output the
results to excel. I was thinking that maybe the best way to do this would be
to have text files of the queries that I can read into string variables.
Some of the queries are pretty unwieldy and I dont want them hardcoded. So
my question is: How can I read in a full text file into a string variable?
Mark
I would like to send queries straight to the Oracle database that I am
connecting to. I do not want Access to process it since they seems to be a
lot faster when I use a pass through query. However, I want to use variables
in the SQL statements which I dont believe pass through queries will work.
So I want to use vba code to send the queries through and then output the
results to excel. I was thinking that maybe the best way to do this would be
to have text files of the queries that I can read into string variables.
Some of the queries are pretty unwieldy and I dont want them hardcoded. So
my question is: How can I read in a full text file into a string variable?
Mark