OK. These are the basic steps involved. I've made some assumptions about the database, table and field names etc, so you'll need to adapt this to suit your purpose.
1. Open your report file in Crystal
2. Display the
Field Explorer...
View|Field Explorer
3. Place the fields you want to display in the report's
Details section
4. In the Field Explorer, right click on
Formula Fields and select
New...
5. Give the formula a sensible name, eg CountYes, and click
Use Editor
6. In the bottom pane of the Formula Editor type the following (substituting your table name):
Code:
Shared numberVar CountOfYes;
If {Bookings.Booked} = True Then
CountOfYes := CountOfYes + 1
7. Click
Close and click
Yes to save your changes
8. From the
Field Explorer drag your new formula into the
Details section
9. Now create another formula as in step 4, and call it
SumOfYes
10. In the Formula Editor type the following code:
Code:
Shared numberVar CountOfYes;
CountOfYes
11. Close the editor and save your changes
12. This time, place your new formula in the
Report Footer
13. Run your report
This should display the total number of times that the 'Booked' field was Yes at the bottom of your report.
You'll probably want to stop the
CountYes field from displaying for each record, so just right-click the field, select
Format Field..., click on the
Common tab and check the box labelled
Suppress.