Results 1 to 3 of 3
  1. #1
    behnam is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2014
    Posts
    72

    DoCmd.OpenReport how to combine two queries and show both results

    Hi guys im using the docmd.openrport method as follows

    Code:
    DoCmd.OpenReport "NRD", acViewReport, "R1-NRD"
    this example i used a query called r1-nrd, is it posibble to combine queries, ie also add "r2-nrd" and so forth.

    Thanks.

  2. #2
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    You can combine the results of similarly structured queries in a Union query.
    See: https://support.office.com/client/Co...3-29ec44acbc05

  3. #3
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    The opening of a report object (your docmd statement) and the record source of the report - - are somewhat two different topics. The desire to 'combine queries' needs further definition. One could be redefining the criteria of 1 query, potentially appending the results of multiple queries into a temp table, or joining the queries via a new 3rd query - - but it depends on you truly need.

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

Similar Threads

  1. Replies: 3
    Last Post: 09-04-2013, 03:21 PM
  2. Replies: 1
    Last Post: 05-06-2013, 03:32 PM
  3. Combine Results of Two Queries
    By Ganymede in forum Queries
    Replies: 3
    Last Post: 12-28-2012, 02:00 PM
  4. Replies: 1
    Last Post: 10-23-2012, 02:04 PM
  5. Combine queries results in forms
    By frasilvio in forum Queries
    Replies: 12
    Last Post: 01-10-2008, 01:34 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