Using Auto Ex to Run Queries

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • austenr
    New Member
    • May 2006
    • 2

    Using Auto Ex to Run Queries

    Hi,

    I am new to the board so please bear with me. What I want to do is to set up queries in a database I have (there are 4 make table queries) and then after they are finished, run a report I have created and then email it to individuals. Is this possible and if so how do you go about doing that? If I had to split it up one section at a time that would be fine also. Your response is more than appreciated. Thanks
  • PEB
    Recognized Expert Top Contributor
    • Aug 2006
    • 1418

    #2
    You nearly know the answer!

    It's just the autoexec Macro!

    Create a macro name it Autoexec and set up there what you want!

    So when you enter in the database this macro will be executed!

    :)

    Comment

    • 7 of 9
      New Member
      • May 2007
      • 23

      #3
      Originally posted by PEB
      You nearly know the answer!

      It's just the autoexec Macro!

      Create a macro name it Autoexec and set up there what you want!

      So when you enter in the database this macro will be executed!

      :)
      how do you prvent the window from comming up that askes the user to OK the make table query when using and autoexec?

      Comment

      • JKing
        Recognized Expert Top Contributor
        • Jun 2007
        • 1206

        #4
        Try this:
        [code=vb]
        Docmd.SetWarnin gs False
        [/code]

        Be sure to turn the warnings back on once you've run your action query. Changing this setting supresses warning messages for the entire database and this could result in unwanted changes if you fail to turn the warnings back on after completing your desired actions.

        Comment

        Working...