• Criteria (Access 2002)

    Author
    Topic
    #399540

    I have created a query that runs against a linked file and it runs fine. In fact, it returns the result in less than 2 seconds. I then changed the criteria statement to include an SQL SELECT statement running against a local table. The query run time jumped from 2 seconds to 40 seconds. That a 1900% increase in time!!! What’s up with that?? The local table is currently only about 10 records and the Select query runs in under a second if run on its own. I don’t understand the time lag. Does anyone have any recommendations?

    Viewing 0 reply threads
    Author
    Replies
    • #772797

      Are you talking about a subquery in the criteria? I’m not clear on which select query you’re saying runs in under a second on its own, however, it’s nearly impossible to diagnose something like this without seeing the SQL. Some things that can affect the speed is the absence or presence of indexes on the fields involved, subdatasheets, and the way the query is constructed.

    Viewing 0 reply threads
    Reply To: Criteria (Access 2002)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: