Query Optimization

The Microsoft Jet database engine has a built-in query optimizer that uses statistics to determine which query strategy to use. For this reason, you should open, resave, and run your queries to recompile them if you add a significant number of records to your database—especially if the records are added to the table on which a query is based. You also should recompile them in the event of an index change.

Unfortunately, you can neither view Jet database engine optimization schemes nor specify how you want to optimize a query. However, you can use the Database Documenter to find out whether indexes are present and how unique an index is. Simply choose Tools, Analyze, Performance from the Access toolbar. Because the query performance ...

Get Access 2002 Programming by Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.