Do you think this method could be recreated using access sql, i found something which is similar but its using a subquery in the WHERE block and its quite slow, not only that i have to perform this operation several times on various columns and join the results at the end in a report
i have a sequence of 5 linked queries which all work together to get the final report, everything is cascaded so i just call the 1 sql statement, but the statement below is very slow and like i said im doing this 3 times for this particular report before compiling everything........
SELECT T1.Inventory_ID, T1.Bank_ID, Max(T1.Front_Gross) AS MaxOfFront_Gross
FROM A1_Banks INNER JOIN Qry_Reports_MaxGross_Stage_0_PreFilter AS T1 ON A1_Banks.ID = T1.Bank_ID
WHERE (((Exists (select 1 from Qry_Reports_MaxGross_Stage_0_PreFilter T2
where T1.Inventory_ID = T2.Inventory_ID
and T1.Bank_ID = T2.Bank_ID
and T1.Front_Gross < T2.Front_Gross))=False))
GROUP BY T1.Inventory_ID, T1.Bank_ID;
the only way i could recreate the sumif example would be either something similar to this or with a join that access (i dont think) will allow, mssql or mysql would handle this very easily but access is a pain in the butt.
any ideas?
Bookmarks