Results 1 to 3 of 3
  1. #1
    RickK is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2014
    Posts
    16

    How do you add a pause in a macro

    I use a macro to open two different forms. I want to add a step in the macro to wait or pause for 10 seconds between the two forms.



    I think I could build a module using WaitFor and then call this out by running code in the macro. But I do not know how to build the argument WaitFor to pause for 10 seconds. Could someone please show me what it should look like? Or is there another way to accomplish my goal?

    Thanks
    Rick

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,518
    One option:

    http://access.mvps.org/access/api/api0021.htm

    You could make a function and call it from your macro.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,518
    Oh, and if the first is splash screen or something, I'd use its timer event to open the second and close the first.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Pause / Wait / Countdown / Timer
    By DevGreg in forum Programming
    Replies: 2
    Last Post: 07-19-2022, 06:30 AM
  2. To pause macro until function is finish
    By mercapto in forum Programming
    Replies: 7
    Last Post: 04-07-2014, 01:37 PM
  3. Pause macro so CMD can run
    By shank in forum Macros
    Replies: 4
    Last Post: 01-16-2014, 06:07 PM
  4. Help with a basic record pause or lock?
    By valkster in forum Programming
    Replies: 0
    Last Post: 03-12-2012, 06:14 AM
  5. Pause state?
    By Zermoth in forum Programming
    Replies: 1
    Last Post: 12-15-2008, 05:05 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