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

Syntax for no record found

Status
Not open for further replies.

mouser4069

Technical User
Feb 28, 2007
11
US
What is the syntax for "no record found" in Crystal"?

We are writing a pending report and the pending formula is returning one record when there is none. We are trying to suppress various things in our checkbreak such as OnFirstRecord and OnLastRecord, else... However, we need the syntax for no record found.

Any help?
 
There isn't specifically, there's a recordnumber function, which might serve your purposes.

Another way is to check for null against a column which could never be null, such as:

if isnull({table.recordid})
or
recordnumber = 0 then
"no records found"

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top