Hi,
Let me try to explain
I have an access 97 database. In one of the form the user enters the requested information. This information is used to create a parametric query.
Now to get the output of the data generated by this query, I am doing the following:
sqlstr= Select * into tpTable1 where ....
So a temp table is created and a report designed on this table is produced for the user to view or print. The next time the user does the same operation, the code first deletes the temp table and then recreates it with the new data.
Problem: 1.If the user halts the execution of the program. then the next time the code does not find the temp table to delete and causes problems.
2. If I want to create a number of queries, I have to create the same number of temp tables.
I admit, this is the only way I know to run these queries. There must be another way to generate the data for the report without having any temp tables.
Any help, support will be appreciated.
Qureshi
Let me try to explain
I have an access 97 database. In one of the form the user enters the requested information. This information is used to create a parametric query.
Now to get the output of the data generated by this query, I am doing the following:
sqlstr= Select * into tpTable1 where ....
So a temp table is created and a report designed on this table is produced for the user to view or print. The next time the user does the same operation, the code first deletes the temp table and then recreates it with the new data.
Problem: 1.If the user halts the execution of the program. then the next time the code does not find the temp table to delete and causes problems.
2. If I want to create a number of queries, I have to create the same number of temp tables.
I admit, this is the only way I know to run these queries. There must be another way to generate the data for the report without having any temp tables.
Any help, support will be appreciated.
Qureshi