Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Optimizing Macro Record Lookups

Status
Not open for further replies.

apexearth

Programmer
Apr 5, 2010
13
US
What's the fastest way to do a view lookup in a macro or while using the COMAPI?

Right now I have used either the .Browse or .FilterSelect functions followed by a Fetch or a GoTop and sometimes it can take an outlandish amount of time to perform depending on where the record is and whether I'm doing it in ascending or descending order.

I feel like there must be a better way. Anyone have one?
 
That depends on the .Order.

Search on the index==Good.

Search off the index==Bad.
 
If you have the key field(s) then set the key values and use .Read - that is the fastest.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top