Record Count in Crystal Reports

I am using VS2003 and have a crystal report I need to get the count of the Dataset I have tied to the report so I can loop through and test.  How can I get a count in Crystal, I know I use a formual field but I'm not sure of the command.

Thank you
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.

add a new formula field, name it "Count1" and save the following in there

val({Your report fieldname here})
also you can just open your report in a design view, right-click, select Insert and then "Summary" or "Total"
running32Author Commented:
Val doesn't give me the count if displays 0.00.  I know I have two records in my dataset.  I just don't know how to get it to display 2.

count({Your report fieldname here})
The following examples are applicable to Crystal syntax:

If Count({orders.ORDER ID}) >= 100 Then

     "Congratulations on meeting your quota!"



Prints the congratulatory message if the number of orders is 100 or more, and prints nothing if the number of orders is less than 100.


Returns 5. Counts the total number of values in the array.

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
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
Visual Basic.NET

From novice to tech pro — start learning today.