Report using Multiple Queries

Anonymous
2022-02-21T06:52:20+00:00

I have values shown in the figure below from the following 3 queries:

  1. State – values in column E for all states and additional values in column F for some states.
  2. Company – values in either column G or H for all companies.
  3. Subsidiary – values in both columns I and J for all subsidiaries

Can anyone provide some assistance in how I could display the values of the 3 queries in a report as shown below. I would like the values shown exactly like indicated.  

Thank you

Microsoft 365 and Office | Access | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes

5 answers

Sort by: Most helpful
  1. Anonymous
    2022-02-21T12:57:10+00:00

    Can anyone provide some assistance in how I could display the values of the 3 queries in a report as shown below. I would like the values shown exactly like indicated.  

    Hi William,

    In the systematic that I use to make my reports, it would be peanuts. My reports are generated directly in RTF, readable and printable in many text-editing applications.

    You can mimic this approach with a (non-keyed) table with the columns as in your example.

    Next you make a procedure to fill this table with 4 nested loops for Region, State, Company and Subsidiary.

    After filling this table, row by row, with the needed data in the right field, you can use this table as the basis for your report.

    Imb.

    0 comments No comments
  2. ScottGem 68,780 Reputation points Volunteer Moderator
    2022-02-21T13:38:10+00:00

    Can you provide the SQL for the 3 queries and the structure of your tables. You could build the report using grouping and using the Hide Duplicates or using subreports. But we need to understand the structure to be more specific.

    0 comments No comments
  3. Anonymous
    2022-02-21T16:41:38+00:00

    Scott

    I realize it is difficult to provide constructive input/solutions without knowing the items you mentioned. What I had shown was a made up example to represent an actual problem. I think, as you mentioned, the key is to use grouping or subreports. This would be to construct a report based on multiple queries.

    I could send the infomation you requested but I thought first it might be earsier for you to refer me to an example of a report using groupings or multiple queries. I have not done this previously so anything would be educational.

    Thank you.

    0 comments No comments
  4. ScottGem 68,780 Reputation points Volunteer Moderator
    2022-02-21T20:21:35+00:00

    Grouping is easy. The Report wizard prompts you to select one or more grouping levels. SubReports work the same way subforms. Then link to a parent record.

    0 comments No comments
  5. Anonymous
    2022-02-21T21:47:38+00:00

    Scott

    I looked that over and have some idea on the grouping. That was helpful.

    Thank you

    0 comments No comments