Thank you David. This is exactly what I was looking for. I am trying to link the PO Receipt history table to the SO table using the PO number and was thinking there was a way that I could create an index on the PO number field and the way to do that was included in the thread. I thought when you created a ptq you could somehow index the field as part of that. Do you know if that is possible?
Thanks,
john
------Original Message------
I suspect you might be looking for the thread I started comparing the performance of a linked table vs pass-through query in Access with a real world example amd test results against a large table. I can't find it on this 90M platform so I guess it didn't get migrated.
Regardless, what I found was that when you create a linked table, access copies the table's index info so any query you create that uses the linked table will benefit from the index.
This is incredibly important/beneficial if dealing with a table with a lot of records and you are using criteria that can use any one of the indexed fields, even the fields used in multi-field indexes and non-primary indexes.
A PTQ on the other hand will only benefit from the table's indexed fields if you embed the criteria against the fields in a WHERE clause in the PTQ's SQL statement. If you create your PTQ with a simple SQL statement like "SELECT * FROM AR_InvoiceHistoryHeader", any queries that use that PTQ as a source will query the entire record set before your WHERE clause is applied to it.
------------------------------
David Speck II
Tennessee Software Solutions
------------------------------