I'm so sorry to bother you again.
As I wrote above, following your instructions, the query worked perfectly in test.mdb.
However, when I applied it to may real database aviation.mdb (changing the table names accordingly) it would not work. I must have worked on it for five hours trying to see...