> Hi everybody.
>
[quoted text clipped - 18 lines]
> BTW my OS is Win XP Pro SP2 with all security patches and Access is
> 2003.

Signature
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com
> How are you testing the query? If you just open the datasheet view you will
> see results very quickly because Access will paint the screen after fetching
> just a few data-pages of rows. That doesn't mean though that the query is
> actually finished. See how long it takes to open the query and then scroll
> to the bottom of the result set. That would be more of an apples to apples
> comparison.
The number of rows returned by the query is not always the same, but
in my tests there are max 50 rows.
As I said before, just opening the query takes max 2 seconds.
> Are you doing anything in your form that retrieves the row count of the
> ListBox? That will force all of the rows to be processed. Otherwise it
> should behave much like the query datasheet where it is really only slow
> when you try to scroll down a ways.
My test form just contains a listbox whose RowSource property is set
to the name of the query. No other calculated controls are present.
The form has been created with just few clicks.
> The reason I doubt the veracity of your tests thus far is that it is
> completely expected for a query joining tables from two different databases
> to perform poorly. Any other result would be the surprise.
This was also my first thought, but it should be slow even when I just
launch the query with no connection to my listbox.
BTW, fields used in the WHERE statement are indexed.
I've made an additional test. In the source query I rediced the number
of selected columns from 7 to 1, but I did not made any change to
WHERE criteria.
Now the form opens much faster than with 7 columns selected. But I
need to display data from these columns in my listbox.
-- Alessandro