G
Guest
Access 97 kills my pass-through query after the first SELECT statement. I
have multiple select statements in my complete query (which also creates temp
tables at the database side).
Here's what the beginning of my query looks like. Notice the INTO TEMP
clause at the end:
SELECT
account_number,
state_abbrv,
service_status,
FROM
accounts_table
WHERE
file_date = '10/20/04' AND
INTO TEMP tmp_all;
....After this query, imagine several other similar SELECTs - all in one big
SQL query.
Some people call these batch queries, some call them cascading queries. Not
sure what the official term for this is. However, I do know that I can run
multiple SELECTs using other SQL programs that have batch processing
capabilities, but not in Access 97. The reason for this is because the Access
terminates the database connection after the first SELECT query completes,
which also drops the TEMP tables that come into play later in the query.
If that all made sense, my question is this: Does anyone know a workaround
with VBA to make multiple SELECTs work in Access 97? Or perhaps more simply,
to hold the dabase connection open long enough for Access to run through my
entire query and process all SELECTs?
have multiple select statements in my complete query (which also creates temp
tables at the database side).
Here's what the beginning of my query looks like. Notice the INTO TEMP
clause at the end:
SELECT
account_number,
state_abbrv,
service_status,
FROM
accounts_table
WHERE
file_date = '10/20/04' AND
INTO TEMP tmp_all;
....After this query, imagine several other similar SELECTs - all in one big
SQL query.
Some people call these batch queries, some call them cascading queries. Not
sure what the official term for this is. However, I do know that I can run
multiple SELECTs using other SQL programs that have batch processing
capabilities, but not in Access 97. The reason for this is because the Access
terminates the database connection after the first SELECT query completes,
which also drops the TEMP tables that come into play later in the query.
If that all made sense, my question is this: Does anyone know a workaround
with VBA to make multiple SELECTs work in Access 97? Or perhaps more simply,
to hold the dabase connection open long enough for Access to run through my
entire query and process all SELECTs?