Results 1 to 3 of 3
  1. #1
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368

    Access events


    Hi all,

    We can trigger VBA code on form events. Can we trigger them on Access application events? For example, can i trigger some vba code when i run a query? Reason I ask is that when I'm running a rather lengthy query, I really cant do much but sit there and wait for it to finish. It makes me look rather unproductive to those who walk by and don't know what's really going on. It doesn't help that Access' progress bar might as well not exist, as it is totally inaccurate. What I want to do is have a from with with a progress bar, more so like the windows start-up bar that shows that scrolls constantly rather than showing how much is done, every time I run a query.

    While my use for this is rather stupid, it brings up the larger question of using Access events, rather than form events, to trigger code. Can this be done?

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,742
    From what I can find, it seems, because MS Access is single threaded, that you can not do other meaningful work while the query is running. I've seen posts where the person was advised to move to DotNet if multithreading was a requirement.
    Just my $.02

  3. #3
    alansidman's Avatar
    alansidman is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529
    Mike Alexander in this video shows a concept that is interesting. Not sure how you would apply it to one query only however.

    http://www.datapigtechnologies.com/f...ogressbar.html

    Alan

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

Similar Threads

  1. Replies: 9
    Last Post: 11-22-2011, 05:23 PM
  2. Events are "Non-Events"
    By caddcop in forum Forms
    Replies: 4
    Last Post: 04-07-2011, 10:08 PM
  3. count of events
    By old_chopper in forum Access
    Replies: 1
    Last Post: 02-28-2011, 12:49 PM
  4. Different Events
    By jo15765 in forum Programming
    Replies: 2
    Last Post: 12-07-2010, 12:45 PM
  5. Events Report, please help!
    By Suzan in forum Reports
    Replies: 3
    Last Post: 04-19-2006, 01:11 PM

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