Results 1 to 2 of 2
  1. #1
    Vegaanders is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2016
    Location
    Cyprus
    Posts
    29

    Can this task be done with a macro

    Hi Guys!



    Before I test perhaps a simple question here can put me off the project.

    Is this possible to do in one macro.

    I have 4 different reports populated from 4 different queries. The input parameter is the same for all four queries.

    This is what I would like to do:

    When I put in the parameter (month I am interested in) the macro should fire all four reports and print them out.

    Is this reachable?

    Regards

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    yes, in a form put a box for the parameter
    in the queries , reference the box using the full path:
    select * from table where [myFld] = forms!myForm!txBox

    then the macro just opens all the reports
    docmd.openreport "rpt1"
    docmd.openreport "rpt2"
    docmd.openreport "rpt3"
    docmd.openreport "rpt4"

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

Similar Threads

  1. Replies: 2
    Last Post: 06-24-2016, 05:46 PM
  2. Replies: 1
    Last Post: 01-21-2016, 05:26 PM
  3. Windows Task Scheduler .Bat File Macro
    By mrmmickle1 in forum Access
    Replies: 26
    Last Post: 09-08-2015, 04:21 PM
  4. Replies: 3
    Last Post: 06-20-2013, 08:57 AM
  5. Replies: 4
    Last Post: 08-25-2012, 10:30 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