Neil,
Thanks for responding. Yep, my relationship classes are one to many. What is the best way to query when you have to join multiple tables to obtain the results you are looking for? I've been playing around with IQueryDef2 and not having much luck there either. The PrefixClause for Distinct is causing issues. Is there a way to use a "normal" SQL type query that supports Distinct, Order By, Group By, Union etc.? Also, is it possible to dump query results to a table either created as part of the query results or a virtual table? I'm looking for more advanced querying than what I've been able to find in the general help documents. Can you help point me in the right direction?
G