Log in

View Full Version : Flags in Crystal Reports


shousha
Mar 16, 2007, 05:18 AM
I have a crystal report that prints school report cards. I need to add a flag on this condition where if the student didn't pay his tuition the report card wouldn't print and an error message will pop out instead...

ScottGem
Mar 16, 2007, 06:47 AM
You would really do this in the application that manages the data. How are reports kicked off? Generally Crystal Reports are called from an application.

shousha
Mar 16, 2007, 02:59 PM
That report is generated from a software called student management system which is SQL based.. I use crystal reports to create reports requested... That is why I was wondering if such flags can be created inside Crystal Reports...
Thanks for your help!

ScottGem
Mar 16, 2007, 04:46 PM
You might be able to create a calculated field that counts the number of records and produces a message if zero. But I'm really not sure if that will work.

Troll Smasher
Apr 13, 2007, 12:45 PM
i have a crystal report that prints school report cards. i need to add a flag on this condition where if the student didnt pay his tuition the report card wouldnt print and an error message will pop out instead...


Not knowing what fields you are pulling in your report, you can get a error message to show up by using a formula field and suppressing the data when the formula field is true.

I would imagine that you should have a field that tells if tution has been paid and then you could base your formula off that field.

Hope this points you in the right direction.