postmanphat
Technical User
Hi, I'm writing a small db (attached) that records the number of people contacting an advisory service, how they contacted them (intervention) and various info like gender etc).
I've written a query that churns out various counts about how many people contact the service and how (attached spreadsheet - interventions.xls) at first it worked fine and Access output the results very quickly. The problem is as soon as I put some date criteria in it takes up to 45 minutes to run the query (I've tried it with literally 1 row of data and it still takes 45 mins).
The query that has the problem is 'Interventions', in which you'll see another query called 'InterventionDays' which is the query that gets the date range. If I run 'InterventionDays' on its own its nice and quick, and if I delete 'InterventionDays' from the from 'Interventions' then 'interventions' runs nice and quick. But together it just grinds to a halt.
There are 2 rows of data in there at the moment for 17/02/08(to see in form view - find that date in the combo box on the main menu and click the >> button.
Any advice would be most greatly appreciated.
I've written a query that churns out various counts about how many people contact the service and how (attached spreadsheet - interventions.xls) at first it worked fine and Access output the results very quickly. The problem is as soon as I put some date criteria in it takes up to 45 minutes to run the query (I've tried it with literally 1 row of data and it still takes 45 mins).
The query that has the problem is 'Interventions', in which you'll see another query called 'InterventionDays' which is the query that gets the date range. If I run 'InterventionDays' on its own its nice and quick, and if I delete 'InterventionDays' from the from 'Interventions' then 'interventions' runs nice and quick. But together it just grinds to a halt.
There are 2 rows of data in there at the moment for 17/02/08(to see in form view - find that date in the combo box on the main menu and click the >> button.
Any advice would be most greatly appreciated.