Solved

TO find number of rows returned by a selection formula

Posted on 2003-11-19
5
242 Views
Last Modified: 2010-08-05
hi experts,
  iam usin a selection formula to retreive records the problem is i don't want to display the report when ,no records is returned by the selection formula...so i want a way to find the number of rows returned by the selection formula ...moreover iam usin the special field record number in the report when..no row is returned the record number displays value 1 in the blank row  that is usually displayed...iam count in on your expertness than you do on yours...help meeeeeeeeeeeeeee

regrds
vairavamuthu
0
Comment
Question by:vairavamuthu
5 Comments
 
LVL 77

Accepted Solution

by:
peter57r earned 30 total points
ID: 9786090
File>ReportOptions
Suppress Printing If No Data


Pete
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 9787773
Should work.

mlmcc
0
 
LVL 1

Author Comment

by:vairavamuthu
ID: 9841422
dear peter& mlmcc and all experts,
         the solution is working fine peter ,when i open the report in cr9.0..
                                     BUT as iam invoking the report in a asp.net application  through a crystal viwer..when no records is returned the reports is shown with a single blank row with the special field value as 1....iam using a selection formula to retreive the record ..so if i got a way to find the number of  rows  returned in the selection formula i can suppress the  report and can display a error msg that "no record found".so pleasehelp me  to find the number of rows returned by the selection formula .iam count in on your expertness than you do on yours...help meeeeeeeeeeeeeee

regrds
vairavamuthu

 
0
 

Expert Comment

by:casfion
ID: 9926487
probably, you may need to write sql statement in your asp to check on the no. of rows to return. If the return is 0, you display error message; if not, then you active the crystal report.
0
 
LVL 1

Author Comment

by:vairavamuthu
ID: 9933131
dear casfion,
                    Thank you very much for the tip. i used it and it worked ..

thanking you
vairavamuthu
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question