Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 949959
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T23:29:16+00:00 2026-05-15T23:29:16+00:00

I have a main report which contains user information — and a subreport that

  • 0

I have a main report which contains user information — and a subreport that contains multiple items for said user.

Question is, I need the main report to duplicate as many times as necessary for the number of users I feed into the DataSource — how can I do this, so that it results in one large report (containing multiples of the main report)?

EDIT: Let me re-ask with a specific example (similar to my own): Let’s say I want a report for a grocery shopper — all of the shopper’s demographics would be on the main report, however, there needs to be a section (or subreport) for a specific shopping trip containing all items purchased.

NOW, here is the clencher. I need to run this report for many different shopping trips (this also means different shoppers too).

It might even be better to say that this is a “shopping trip” report, which can run for a batch of shopping trips.

FURTHER PROGRESS: How can I get the grouping to work when my data looks like this:

(shoppingTripId, shopperId, shopperName, shoppingDate, itemBought)
------------------------------------------------------------------
1, 1, Chris, July-24-2009, Computer
1, 1, Chris, July-25-2009, Laptop
2, 3,  John, June-14-2009, Ipod
2, 3,  John, June-14-2009, Television

The report, if all goes well, would look like this:

+-----------------------------------------------
| Chris                     ShoppingTripID: 1
| 123 Main Street               CustomerID: 1
| Anytown, CA 90210
+-----------------------------------------------
| Computer   $999.00
| Laptop    $1099.00
+-----------------------------------------------
+-----------------------------------------------
| John                      ShoppingTripID: 2
| 123 Main Street               CustomerID: 3
| Anytown, CA 90210
+-----------------------------------------------
| Ipod       $999.00
| Television $1099.00
+-----------------------------------------------

At the moment, I’m getting this:

+-----------------------------------------------
| Chris                     ShoppingTripID: 1
| 123 Main Street               CustomerID: 1
| Anytown, CA 90210
+-----------------------------------------------
| Chris                     ShoppingTripID: 1
| 123 Main Street               CustomerID: 1
| Anytown, CA 90210
+-----------------------------------------------
| John                      ShoppingTripID: 2
| 123 Main Street               CustomerID: 3
| Anytown, CA 90210
+-----------------------------------------------
| John                      ShoppingTripID: 2
| 123 Main Street               CustomerID: 3
| Anytown, CA 90210
+-----------------------------------------------
| Computer   $999.00
| Laptop    $1099.00
+-----------------------------------------------
| Computer   $999.00
| Laptop    $1099.00
+-----------------------------------------------
| Ipod       $999.00
| Television $1099.00
+-----------------------------------------------
| Ipod       $999.00
| Television $1099.00
+-----------------------------------------------
  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T23:29:17+00:00Added an answer on May 15, 2026 at 11:29 pm

    Move the main report into the details of the report (broken up into subsections for formatting if necessary), and place the subreport into the details as well.

    That way, you’ll get a main report (plus subreport) for each user.

    Edit

    The more I think about it, you probably don’t even need a subreport. If you join your shopper and shopping trip tables together in the main report, you can put the shopping trip information in the details, all grouped by the shopper ID.

    In the group header, you’ll put everything that is currently in your main report.

    From here, you can pass the report a list of shopping trip IDs as a parameter, and use this parameter in your Record Selection Formula.

    You should end up with something like this (edited 2010/07/25):

    +-----------------------
    | Report Header 
    +-----------------------
    | Page Header
    +-----------------------
    | Group Header (Grouped by **ShoppingTripID**)
    |   Display your shopper information here
    +-----------------------
    | Details
    |   Display your shopping trip information 
    |   for the shopper here
    +-----------------------
    | Group Footer
    +-----------------------
    | Page Footer
    +-----------------------
    | Report Footer
    +-----------------------
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have a table called category in which i have main category ids and
I have a main asp.net app, which is written in asp.net 1.1. Runnning underneath
I have a main window (#1) on my webpage from which I open a
I have a main form and as sub form. I need the main Form
I have a main table that I must get data from. I have a
I have a main TCL proc that sources tons of other tcl procs in
I have a main page that I want to be a sort of dispatch
I have an application where I have a main.m that returns NSApplicationMain(argc, (const char
I've got a Silverlight class library which contains ResourceDictionary objects with styles that I
I have multiple reports all of which require the same footer (company address, VAT

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.