1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Access 2000 Modules

Discussion in 'Business Applications' started by SolutionWeb, Aug 25, 2005.

Thread Status:
Not open for further replies.
  1. SolutionWeb

    SolutionWeb Thread Starter

    Aug 2, 2004
    Please, is there a way to run access Modules from Macro? Basically I am trying to run the module at certain time of the day via Windows Task Scheduler. All my Access queries are defined in a Module.

    Thanks so much
  2. curtswanson


    Jun 22, 2000
    1. Your code in the module needs to be a Function rather than a Sub.
    2. Name your macro AutoExec.
    3. The first line of your macro should be RunCode and use the expression builder or type your function name in the Function Name argument for RunCode.

    AutoExec will run when your scheduled task opens your database. It, in turn, will run your function.
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/393498

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice