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

  • SEARCH
  • Home
  • 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 8738333
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T10:42:41+00:00 2026-06-13T10:42:41+00:00

I have set up a main report that has 2 subreports coming into it.

  • 0

I have set up a main report that has 2 subreports coming into it.
The main report consists of
one table : ROOM & two parameters: STARTDATE and ENDDATE.
The date range is only in the main report so it can be displayed in the title area. More importantly, it links to the 2 subreports.

Right now, the main report is grouped by Facility and then by Room name. Everything is working great until I try to run it for more than one day. What I want is for the main report to also be grouped by the date, but I don’t know if that is possible as the ROOM table does not contain a date field to link the parameters to so that I could use it in the groupings.

Is it possible to create a Date variable within the subreport that could then be passed back to the main report to be used for grouping? I apologize if this is a dumb question, but I do not work with variables often and shared variables even less than any other.

  • 1 1 Answer
  • 0 Views
  • 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-06-13T10:42:42+00:00Added an answer on June 13, 2026 at 10:42 am

    Short answer: No. You can never group a main report with variables from a subreport. Crystal determines a report’s groups early in the evaluation process, before it ever looks at any subreports.

    In general, you might want to ask yourself how to avoid the use of subreports in the first place. In my mind the use of a subreport is a last ditch effort when there is simply no other way to accomplish what you want in a single report. In your case, if your main report is only made up of a single table (ROOM), then you would simply need to move the tables from your subreport to the main report, then join them to ROOM. Doing it this way would leave you free to easily group on whatever fields you wanted.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a main-section div that is set to inherit it's height from its'
I have a main wrapper div that is set 100% width. Inside that i
I've set up Nginx as my main web server and have two Mochiweb based
I have a crystal report that gets its data from one stored procedure, this
I have two panels: main_panel child_panel The main_panel layout is set using: main_panel.setLayout(flowlayout) I
In my main CSS file, I have my a:link selector set to display links
I have set the eclipse java formatter to wrap lines that exceed 120 characters
I have an app that has to load and render a fair amount of
I have a main report, with a space for a sub report. Depending on
I have a custom form that's returning the values to the main form but

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.