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 4062768
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T15:38:25+00:00 2026-05-20T15:38:25+00:00

I have a Crystal report with a table as a datasource and I want

  • 0

I have a Crystal report with a table as a datasource and I want to include another table with details for the report footer.

I have two data sources in the report which are not linked, but when the selection criteria returns no rows from the main table, the results from the non-empty non-linked source are also empty.

I suspect it’s doing a cross join between the two datasources, so if one is empty, that joined with another is also empty. The problem is I need my rows from the non-empty table to show in the report footer section, and they’re getting suppressed by the other, empty datasource.

How can I get rows from an independent table to show in the report footer when the selection criteria and their parameter choices return an empty result set in the main table?

Thanks for your help,

-Beth

Also, I tried using a command as a datasource with sql like this:

select * from waitlist
union all
select distinct null as reportID, null as ..., lastupdated
from waitlist

but it still returns null for lastupdated and suppresses the subreport in the report footer.

  • 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-05-20T15:38:26+00:00Added an answer on May 20, 2026 at 3:38 pm

    I ended up setting my report datasource to a view which unioned another row to the table. I also needed to change my selection criteria so it allows this row to pass through.

    Here’s my datasource:

    CREATE VIEW [dbo].[vw_rpt_waitlist] AS
    select * from waitlist
    union all
    select distinct 
    reportID, 
    null as (fields...), 
    lastupdated, 
    'reserved' as countyName
    from 
    waitlist     
    

    and here’s my record selection formula:

    ({vw_rpt_waitlist.countyName} = {?County} or 
     {vw_rpt_waitlist.countyName} = "reserved") and
    {vw_rpt_waitlist.reportID} = 14
    

    I’m also suppressing the detail section if there were real rows returned:

    formula = {vw_rpt_waitlist.countyName} = "reserved"
    

    and to get the parameterized county name they selected in the page header of the report, I’m using:

    dim t as string
    dim c as string
    
    if {vw_rpt_waitlist.countyName}="reserved" then
        c = {?County}(1)
    else
        c = {vw_rpt_waitlist.countyName}
    end if   
    
    t = "Waitlist by " + {@serviceTitle} + " and Waiver Need Index as of "  
          + cstr({vw_rpt_waitlist.lastUpdated},"MM/dd/yyyy")
    
    formula = t
    

    Since the ‘reserved’ county always comes through, the subreports are not suppressed.

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

Sidebar

Related Questions

I have a Crystal Report which is viewed via a CrystalReportViewer control on an
I have a crystal report function which requires me to trim off characters which
I have built a web page which contains a Crystal Report built using the
I have crystal report and I need to convert it to text file. Currently
I have a Crystal Report that looks like: Date | Person | Ticket |
I have a crystal report file I need make a tiny edit in. It
I have a report that I created with Crystal Reports 2008. This report uses
I have a WebForm application that generates a Crystal Report and streams it to
I have Crystal report 10 I try to use the Crystal Activex Report Viewer
I have a Crystal Report with a formula on the page header like this:

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.