I'm working on creating my very first report in Crystal Reports, and have gotten caught up trying to display text in an object based on an underlying if statement.
Hopefully I'm not way off base, but it is my understanding that I'll have to use a Formula Field in order to get it to display.
I've created one with the following code:
StringVar stat;
If {EventMeetingsReportView.MeetingStatus} = "Cancelled" Then
stat = "Has Been Cancelled"
Else
stat = {RoomsReportView.Building} & ", room " & {RoomsReportView.RoomNumber};
I have a text object with the field in it, but when preview the form all it displays is "False". Any insight would be greatly appreciated - thanks!