There's been discussion on this subject in the past, because a saved query
is "prepared" (optimized), whereas the same SQL executed directly must be
"prepared" by the db engine before executing. However, SQL used in a
property such as Record or Row Source is "prepared" and saved behind the
scenes as a temporary query. (You can see these, if you use VBA to list all
queries but they don't show up in the user interface.
On the other hand, unless you are executing and re-executing SQL on *very*
large amounts of data, most of us cannot detect much difference in actual,
real-world performance when it is neither in a saved Query nor in a
property. Thus we don't worry if we need to construct the SQL right before
executing it, thus missing out on Access' automatic preparing/optimizing.
I would want to experiment with a query as the data source for another
query, as you show, with the environment and distribution of data it will
use.
--
Larry Linson
Microsoft Office Access MVP
Co-Author, Microsoft Access Small Business Solutions, Wiley 2010
"KW" <noemailaddress@....> wrote in message
news:6nkb68l3q3lb1s6gn...@4ax.com...