Results 1 to 5 of 5
  1. #1
    johnseito is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2013
    Posts
    419

    VBA to run two module or sub simultaneously.

    Hello,



    Is there a way to have VBA through window or whatever way to run two or more module or subs at the same time ?

    I have a big program with a lot of data and loops but they are in different module or sub. I need it to complete quickly and the way I see it is running 2 or more module or subs simultaneously.

    Please advise.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    Certainly not in same db. Access does not have 'multi-thread' processing - at least that's the term I've read. Although maybe form Timer event comes close. Never tried to initiate procedures from two open db. Try it - what happens?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,412
    As June says, Access does not have multi threading. To improve performance have you confirmed that the functions you are running are as efficient as they can be - and if referencing tables that these are properly indexed? Perhaps more can be done with queries rather than using code and recordsets for example.

  4. #4
    johnseito is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2013
    Posts
    419
    How about this, use VBA to run a Macro that runs a dot.net app that runs two procedure.
    But have the dot.net app be able to pass variable from the first procedure to the second procedure.
    Running both procedure simultaneously.

  5. #5
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,412
    no idea whether that is doable or not - try it and see

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

Similar Threads

  1. How to open 2-Form simultaneously?
    By djclntn in forum Forms
    Replies: 3
    Last Post: 08-14-2014, 02:56 PM
  2. class module vs regular module
    By Madmax in forum Modules
    Replies: 1
    Last Post: 05-01-2012, 03:44 PM
  3. Run Multiple Queries Simultaneously
    By Shatterday in forum Programming
    Replies: 1
    Last Post: 03-09-2012, 08:54 AM
  4. Replies: 4
    Last Post: 05-16-2011, 04:58 PM
  5. Users on Database Simultaneously
    By rtemple in forum Access
    Replies: 2
    Last Post: 03-26-2009, 08:38 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