Advertisement

03.19.2008 at 07:08AM PDT, ID: 23253638
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.8

FindFirst on recordset improved with ORDER BY clause?

Asked by mwolfe02 in Microsoft Access Database

Tags: , ,

Does anyone know how access executes a FindFirst on a recordset that is based on a select query?  Specifically, does Access start at the first record and move through sequentially until it finds a match or will it use a more efficient algorithm when searching an ordered field?

I would like to search through a UNION query and the field I am searching on will be composed of values from two separate tables.  For example, say my two tables were Days and Months and I did a UNION of the two and sorted them by name.  The result would be:

April
August
December
February
Friday
January
July
June
March
May
Monday
November
October
Saturday
September
Sunday
Thursday
Tuesday
Wednesday

If I did a FindFirst and looked for "September" would it start at April and go one at a time until it found September or would it use a more intelligent algorithm: for example, go to the middle record ("May"), see that September comes after May, then split the difference in the records in the second half of the database and get to September.

From the Access help, it appears a select query will make use of an indexed field from an underlying table, but it seems a UNION query might cause problems even if both fields were indexed in their respective tables.

I would prefer a link to some documentation that specifically addresses the issue, but I'd be glad to hear examples from other experts' experience.  By the way, I am currently connecting to a Jet database, but will probably be moving the data into SQL server at some point in the future.

I look forward to the discussion.

-mikeStart Free Trial
[+][-]03.19.2008 at 07:23AM PDT, ID: 21161842

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.19.2008 at 07:48AM PDT, ID: 21162109

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.19.2008 at 07:55AM PDT, ID: 21162189

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.19.2008 at 09:00AM PDT, ID: 21162819

View this solution now by starting your 14-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Microsoft Access Database
Tags: Microsoft, Office, Access 2002
Sign Up Now!
Solution Provided By: LPurvis
Participating Experts: 3
Solution Grade: A
 
 
[+][-]03.19.2008 at 09:41AM PDT, ID: 21163211

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.19.2008 at 09:44AM PDT, ID: 21163252

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-43 / EE_QW_2_20070628