Results 1 to 11 of 11
  1. #1
    merebag is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Sep 2016
    Posts
    19

    Mouse pointer/cursor flickering when running vba code in the background


    I have an annoyance when running my vba code (which was converted from an Access Data Project in Access 2010) on my Access 2013. The problem is, when I run routines that do a lot of SQL selects and updates when launched, the mouse pointer just toggles quickly showing busy (with the circle around it). I have used DoEvents on my 2010 Access data project and it works flawlessly. However, in 2013, I can't seem to get away from this annoyance.

    Has anyone come up with a sure-fire way of eliminating this? I want the end user to still be able to do other things while this process (which may take a few minutes) runs. However, when they have the mouse pointer flashing and acting busy, its a problem.

    Jeff

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    You do know that MS Access is still Single Threaded, right?

  3. #3
    merebag is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Sep 2016
    Posts
    19
    Yes... I am aware that it is single threaded, which is a pain, but with the doevents, it seemed to run in the background fairly well (with Access 2010 ADP that is)... Now that I am using ODBC DAO style connectivity, the doevents, while it does work, has the flickering.

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Quote Originally Posted by merebag View Post
    I want the end user to still be able to do other things while this process (which may take a few minutes) runs.
    What else did you want the user to do? Nothing in access will work until that single thread is complete.

  5. #5
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Ahh...you were using Stored Procedures in the SQL backend right? The work was accomplished in SQL Server rather than with the MS Access Front End. Are you still using SQL Server as your Back End?

  6. #6
    merebag is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Sep 2016
    Posts
    19
    Yes, I am still solely on a MS SQL server backend with ODBC connectivity. However, I don't use many stored procedures. The issue I am referring to is using DAO recordsets along with .runsql commands.

  7. #7
    aytee111 is offline Competent At Times
    Windows 7 32bit Access 2013 32bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    What exactly do you mean by
    I want the end user to still be able to do other things
    ? Can you give an example?

  8. #8
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    I'm no expert on the ADP but I'll bet it was tightly integrated with SQL Server and used Stored Procedures whenever possible which took the load off of the FE. As I asked a bit ago, what else did you want the user to be able to do while this is executing?

  9. #9
    merebag is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Sep 2016
    Posts
    19
    This routine that I want to run in the background, (well, even though its single threaded it can somewhat simulate being ran in the background), does a lot of of table searches and updates. Its an end of month report to produce bills and such. This process takes about 2 to 3 minutes to run. That is not the problem. The problem comes when the process is launched and the end user wishes to do something else in the application while it runs. In ADP, using the doEvents, it released the process so the end user can do other things in the app while it ran. It STILL does that in my new app with Access 2013. The problem is, the cursor/mouse arrow is flickering like its busy, even though the end user can still click on other things to run. The flickering stops as soon as the original process is done.

  10. #10
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    I'm afraid I'm out of ideas here. Good luck with this project.

  11. #11
    merebag is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Sep 2016
    Posts
    19
    Ya... it's a strange one....... an annoyance.. At least it still works..... thanks anyways

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

Similar Threads

  1. Positioning the mouse pointer
    By Larry in forum Programming
    Replies: 1
    Last Post: 07-25-2013, 01:10 PM
  2. Mouse pointer (=
    By denggoy in forum Access
    Replies: 3
    Last Post: 11-15-2011, 05:30 PM
  3. On Mouse Move, Flickering
    By 95DSM in forum Programming
    Replies: 1
    Last Post: 01-04-2011, 08:35 AM
  4. Replies: 0
    Last Post: 01-04-2011, 12:30 AM
  5. Mouse Pointer Changes
    By BernardKane in forum Programming
    Replies: 2
    Last Post: 06-28-2006, 04:55 AM

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