Results 1 to 13 of 13
  1. #1
    4 Star Lounger
    Join Date
    Aug 2001
    Location
    London, UK
    Posts
    516
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Speeding Execution (access2000)

    Hi Guys!
    Im using Access2000. I have got few querys running by using modules. The problem Im having is that these codes take awful lot time when I run it. Is there anyway I could speed up the process?

  2. #2
    Gold Lounger
    Join Date
    Jun 2001
    Location
    Crystal Beach, FL, Florida, USA
    Posts
    3,436
    Thanks
    1
    Thanked 34 Times in 34 Posts

    Re: Speeding Execution (access2000)

    >>I have got few querys running by using modules.<<

    I'm sorry, but I don't understand what the above sentence means.
    Mark Liquorman
    See my website for Tips & Downloads and for my Liquorman Utilities.

  3. #3
    4 Star Lounger
    Join Date
    Aug 2001
    Location
    London, UK
    Posts
    516
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Speeding Execution (access2000)

    It means that I'm opening few queries using vb modules in access.

  4. #4
    Gold Lounger
    Join Date
    Jun 2001
    Location
    Crystal Beach, FL, Florida, USA
    Posts
    3,436
    Thanks
    1
    Thanked 34 Times in 34 Posts

    Re: Speeding Execution (access2000)

    I don't see how it would make much of a difference in speed between opening a query from database window or from a query.
    Mark Liquorman
    See my website for Tips & Downloads and for my Liquorman Utilities.

  5. #5
    4 Star Lounger
    Join Date
    Aug 2001
    Location
    London, UK
    Posts
    516
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Speeding Execution (access2000)

    I am using this query to create a report, which is done using the vb codes

  6. #6
    WS Lounge VIP rory's Avatar
    Join Date
    Dec 2000
    Location
    Burwash, East Sussex, United Kingdom
    Posts
    6,280
    Thanks
    3
    Thanked 191 Times in 177 Posts

    Re: Speeding Execution (access2000)

    If it's your automation code you're talking about, it may simply be down to the overheads of having to create spreadsheets and merging to Word documents. You could try and optimise your code but it may just be a question of the complexity of what you're doing and the hardware you're doing it on.
    Regards,
    Rory

    Microsoft MVP - Excel

  7. #7
    4 Star Lounger
    Join Date
    Jan 2001
    Location
    Altnau, Thurgau, Switzerland
    Posts
    447
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Speeding Execution (access2000)

    The first thing that springs to mind is the question 'Have you optimised your queries?'.
    Have a look at each individual query and see if you can get it to run faster. If you can, then your code will run faster too!

  8. #8
    4 Star Lounger
    Join Date
    Aug 2001
    Location
    London, UK
    Posts
    516
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Speeding Execution (access2000)

    SORRY, Im lost. Would someone tell me how I could optimise my queries?

  9. #9
    4 Star Lounger
    Join Date
    Jan 2001
    Location
    Altnau, Thurgau, Switzerland
    Posts
    447
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Speeding Execution (access2000)

    Apply filters/sorts only to indexed fields, don't collect fields that aren't required... that sort of optimisation.

  10. #10
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Newbury, Berkshire, UK, Berkshire, England
    Posts
    243
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Speeding Execution (access2000)

    Have you done the basic things like
    compact the database and compile the code?

  11. #11
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Speeding Execution (access2000)

    Princess, you can't optimize SQL that you're building in code, only saved queries. Your problem probably isn't so much the queries as it is the export to Excel, which you can't actually control.
    Charlotte

  12. #12
    4 Star Lounger
    Join Date
    Aug 2001
    Location
    London, UK
    Posts
    516
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Speeding Execution (access2000)

    So theres nothing I can do then? <img src=/S/sad.gif border=0 alt=sad width=15 height=15>
    Thanx guys.
    <img src=/S/bow.gif border=0 alt=bow width=15 height=15>

  13. #13
    4 Star Lounger
    Join Date
    Aug 2001
    Location
    London, UK
    Posts
    516
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Speeding Execution (access2000)

    The processing is slow because of the queries, coz the queries are nested. What am I supposed to do? I HAVE to nest the queries to get the result that am aiming.

    Any other suggestions?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •