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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to display a string as a note

Status
Not open for further replies.

unknownly

Programmer
Jul 7, 2003
181
US
Hi All,


My users are asking to display a note like
"No data is Returned" when there is no records for the given input from the database.

Right now my report returns empty. But I still show them the paratmeter input values using a subreport.

How can I do this. Is it possible to trigger a string to be displayed in the report. when no records are returned from the database.

Any ideas are greatly appreciated.

Thanks in advance,

Sweetie



 
You can create a text box with the message "No Data is Returned" and then go to format text->suppress->x+2 and enter:

Not isnull({table.ID})

//where {table.ID} is a field that appears in every record.

-LB
 
1.) Insert a Text Box of "NO RECORDS FOUND" in the Report Footer.

2.) Use the Section Expert to Suppress the Report Footer section based on the formula -

Count ({Table.Field}) <> 0

**you'll need to insert a {Table.Field} from your report data into the formula.
 
Thank you for response.

I have tried both the ideas.
and
Not isnull({table.ID}) worked fine



Thanks,

Sweetie
 
The only problem with the isnull method is that you might eventually have a valid null in the field used to test (I was burned this way), whereas the count will never return 0 if there are rows.

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top