• make table query run before report

    Author
    Topic
    #355376

    I have a report based on a make table query. (I am new to VBA but willing to keep trying,) How can I enter vba that would cause the make table query to run deleteing the old information and updating it with the new whenever I open the report?

    Viewing 0 reply threads
    Author
    Replies
    • #523977

      Hi. You can do this by a macro.

      In the action column of the macro,

      SetWarnings: to No (the SetWarnings to No will stop those pesky warning windows from popping open.)
      OpenQuery: to your makeTable query
      Close: your query
      OpenReport: to your report. Set the View to PrintPreview

      Pay special attention to the Action Arguments in the lower part of the macro design window for each of the four actions.

      This works well.

      • #523979

        Thank you — fast response and works great! Pat

    Viewing 0 reply threads
    Reply To: make table query run before report

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: