Results 1 to 6 of 6
  1. #1
    DB_Michael is offline Novice
    Windows 10 Access 2016
    Join Date
    Apr 2023
    Posts
    3

    Question Not Responding Message when running a report...can I use VBA?

    I have a report that is run from a form using a button. This report (and underlying query) takes some time to complete, resulting in the Not Responding message. I have seen articles on using DoEvents but frankly I am not sure how to use it in this case. Should the DoEvent be on the button on the form or on the report itself? I have very basic knowledge of VBA, and am wondering how to format the code. A counter or progress indicator would be helpful but not absolutely necessary.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    if the report is a single query then a progress indicator wont work since the query must complete before it can update Progress control.
    you cant: pause the query, update control, continue query.

  3. #3
    DB_Michael is offline Novice
    Windows 10 Access 2016
    Join Date
    Apr 2023
    Posts
    3
    Thank you, that is what I thought, the report is based on a single query. User will have to be patient

  4. #4
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,801
    Maybe your query can be optimized. I can't recall using it, but there's this
    https://support.microsoft.com/en-us/...b-30b86082d792

    Probably lots like this out there
    http://allenbrowne.com/QueryPerfIssue.html
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  5. #5
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Office 365
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,977
    Here's another page on Optimising Queries Speed Comparison Tests 8 (isladogs.co.uk)
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

  6. #6
    DB_Michael is offline Novice
    Windows 10 Access 2016
    Join Date
    Apr 2023
    Posts
    3
    Thank everyone for the information. I have been able to speed up the query by about 1/3. I also added the DisplayHourglassPointer = Y before running the report and then set it to "No" after running the report. The error message does not display on the top of the application but does appear on the form the is used to launch the report and user knows that something is processing. Not the most elegant solution but it works.
    Last edited by DB_Michael; 04-16-2023 at 11:23 AM. Reason: clarification.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 10
    Last Post: 09-07-2022, 07:34 AM
  2. Replies: 1
    Last Post: 08-02-2017, 05:52 AM
  3. Pop Up Message When Running Query
    By spyldbrat in forum Access
    Replies: 1
    Last Post: 07-31-2015, 01:44 PM
  4. Replies: 3
    Last Post: 02-04-2014, 09:50 AM
  5. maketable running without message windows
    By afshin in forum Queries
    Replies: 2
    Last Post: 01-10-2012, 04:44 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums