I've got the following query:
If I run the query via currentdb.execute I it's taking around 2 secs:
SQL:09/03/2005 13:20:44
09/03/2005 13:20:46
If I use the use the docmd.openquery it takes 20 secs:
QRY:09/03/2005 13:20:46
09/03/2005 13:21:06
I thought saved 'compiled' queries were supposed to be quicker?
Code:
INSERT INTO selFeesSum ( FEE_TYPE, FEE_HOW_PAID, FEE_AMOUNT )
SELECT srcFees.FEE_TYPE, srcFees.FEE_HOW_PAID, srcFees.FEE_AMOUNT
FROM selAccounts INNER JOIN srcFees ON (selAccounts.ACCOUNT_NO = srcFees.ACCOUNT_NO) AND (selAccounts.SUBACC_NO = srcFees.SUBACC_NO);
If I run the query via currentdb.execute I it's taking around 2 secs:
SQL:09/03/2005 13:20:44
09/03/2005 13:20:46
If I use the use the docmd.openquery it takes 20 secs:
QRY:09/03/2005 13:20:46
09/03/2005 13:21:06
I thought saved 'compiled' queries were supposed to be quicker?