A
Alfred Malleier
Hallo,
my Access-DB grows over 1.5 GB and therefore I need to archive parts of my
'DocD' (detail-records) in an external DB. But there are situations in my
program where I need to query the entiry table-data. To solve this I create
a query:
Dim qd As QueryDef
Set qd = WinCo.CreateQueryDef("DocX", "TABLE DocD UNION ALL TABLE DocDArc")
So the query 'DocX' contains both tables 'DocD' and 'DocDArc' united by the
UNION-statement.
When I make a query on 'DocX' I have the same result as before when all data
was in one table. But the problem is, that the Query 'DocX' has no indexes
and runs very slowly.
I tried to go around on using the JOIN-Statement, but then in the resultset
I have 'DocD.*' and 'DocDArc.*' fields, abolutely not compatible with the
existing code.
HOW can I solve the problem with speed?
many thanks
Alfred Malleier
my Access-DB grows over 1.5 GB and therefore I need to archive parts of my
'DocD' (detail-records) in an external DB. But there are situations in my
program where I need to query the entiry table-data. To solve this I create
a query:
Dim qd As QueryDef
Set qd = WinCo.CreateQueryDef("DocX", "TABLE DocD UNION ALL TABLE DocDArc")
So the query 'DocX' contains both tables 'DocD' and 'DocDArc' united by the
UNION-statement.
When I make a query on 'DocX' I have the same result as before when all data
was in one table. But the problem is, that the Query 'DocX' has no indexes
and runs very slowly.
I tried to go around on using the JOIN-Statement, but then in the resultset
I have 'DocD.*' and 'DocDArc.*' fields, abolutely not compatible with the
existing code.
HOW can I solve the problem with speed?
many thanks
Alfred Malleier