Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Display text string when cross-tab returns no results 1

Status
Not open for further replies.

cubeblock

IS-IT--Management
Sep 21, 2007
10
GB
Hi,

I have a cross tab that operates on a date range. When there is no data for the range nothing is displayed on the page. When this occurs I would like to display a text string on the page. I have looked at conditional suppression of a section but I cannot find a solution.

Thanks

CR9
 
oooh, old then!

Have a subreport that runs the same or similar query, but with some sort of count. Place that in a section before the cross tab. Use a shared variable to pass back whether or not there's any data. Suppress sections based upon that.

Andrew Baines
 
Assuming you have a selection formula like:

{table.date} = {?daterange}

...you should be able to create a formula like this to place in the section:

if isnull({table.ID}) then
"No data"

The field used should be a non-null (recurring) field.

You also should make sure that in file->report options you have NOT checked "suppress report if no records".

-LB
 
Thank you for the help on this. Your solution works great
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top