Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8392305
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T19:29:04+00:00 2026-06-09T19:29:04+00:00

I have a query running in Microsoft Access 2010 and it takes over 30

  • 0

I have a query running in Microsoft Access 2010 and it takes over 30 minutes to run normally. I would like to present the end user with some status of the query. A progress bar would be nice but not required. Access seems to be poorly threaded and locks up tight during the execution of the query, negating any updates I try. While I’d rather whip out VS and write my own app to do this, I’m forced to use Access.

I used to run this from a batch script which populated the database but I’d like to have it all self-contained in Access. To be specific, the "query" is really a VBA script that pings a series of hosts. So I’m not too concerned about optimizing the time per se but simply about letting the end user know it hasn’t locked up.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T19:29:05+00:00Added an answer on June 9, 2026 at 7:29 pm

    I often do something like this

    Dim n As Long, db As DAO.Database, rs As DAO.Recordset
    
    'Show the hour glass
    DoCmd.Hourglass True
    
    Set db = CurrentDb
    Set rs = db.OpenRecordset("SELECT ...")
    
    rs.MoveLast 'Needed to get the accurate number of records
    
    'Show the progress bar
    SysCmd acSysCmdInitMeter, "working...", rs.RecordCount
    
    rs.MoveFirst
    Do Until rs.EOF
        'Do the work here ...
    
        'Update the progress bar
        n = n + 1
        SysCmd acSysCmdUpdateMeter, n
    
        'Keep the application responding (optional)
        DoEvents
    
        rs.MoveNext
    Loop
    rs.Close: Set rs = Nothing
    db.Close: Set db = Nothing
    
    'Remove the progress bar
    SysCmd acSysCmdRemoveMeter
    
    'Show the normal cursor again
    DoCmd.Hourglass False
    

    Note: Of course you must do the work programmatically for this to work. You cannot watch a runnging query in code or the like in Access. Possibly you could split the work of your slow query into smaller pieces, in order to get the chance of updating a progress bar. But you can always show the hour glass; this tells the user that something is happening.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am running problems in implementing LIKE in PDO I have this query: $query
I have the following Access 2002 query I'm running through OLE DB in .NET:
I have a problem running an insert query via C# OleDbCommand to an Access
I have the following mysql query which I am running with php like so.
I have problems running a dynamic LIKE statement in my project: this query works
I have a SQL query running using something like this: PreparedStatement pstmt = dbConn.prepareStatement(sqlQuery);
I have the following SQL query that I am trying to run inside Microsoft
I have a query saved in the queries section. I am running the query
I have a LINQ to Entity query that is running really slow. This query
I have situation, where running a query that filters by an indexed column in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.