TO find number of rows returned by a selection formula

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 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 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 meeeeeeeeeeeeeee

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Suppress Printing If No Data


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Should work.

vairavamuthuAuthor Commented:
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 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 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 meeeeeeeeeeeeeee


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.
vairavamuthuAuthor Commented:
dear casfion,
                    Thank you very much for the tip. i used it and it worked ..

thanking you
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Crystal Reports

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.