Ken-
That's always going to run slowly in Access because of the correlated subquery. If you don't need an updatable query, I would normally recommend moving the subquery to do a JOIN, but your criteria (< and IS Null) won't allow you to do that. Make sure there are indexes on the meter IDs, the Meter Name, and the ReadingDate.
John Viescas, Author
Microsoft Access 2010 Inside Out
Microsoft Access 2007 Inside Out
Microsoft Access 2003 Inside Out
Building Microsoft Access Applications
SQL Queries for Mere Mortals
(Paris, France)
On Jun 2, 2015, at 6:00 PM, Duane Hookom duanehookom@hotmail.com [MS_Access_Professionals] <MS_Access_Professionals@yahoogroups.com> wrote:
__._,_.___
Posted by: John Viescas <johnv@msn.com>
Reply via web post | • | Reply to sender | • | Reply to group | • | Start a New Topic | • | Messages in this topic (3) |
.
__,_._,___
Tidak ada komentar:
Posting Komentar