Looking for some help with formulating my formula please.
My report initially displays 3 fields a start date, end date and a distinct list of departments in the database. If the user selects a date range that has no data for the selected department then no results will be retrieved. What I am trying to do is display a popup to the user advising them that the selected department has no results within the date range selected.
I am a little stuck with my formula. So far my formula looks something like this
{?SelectedDepartments} not in groupName({report.Departments})
The first parameter would contain the users selected departments and the group is the returned results from the database. So for example if I selected HR, IT, Finance in my parameters for a selected period of time and only HR and IT had results then I want to code Crystal to display a popup saying no results for department Finance.
My report initially displays 3 fields a start date, end date and a distinct list of departments in the database. If the user selects a date range that has no data for the selected department then no results will be retrieved. What I am trying to do is display a popup to the user advising them that the selected department has no results within the date range selected.
I am a little stuck with my formula. So far my formula looks something like this
{?SelectedDepartments} not in groupName({report.Departments})
The first parameter would contain the users selected departments and the group is the returned results from the database. So for example if I selected HR, IT, Finance in my parameters for a selected period of time and only HR and IT had results then I want to code Crystal to display a popup saying no results for department Finance.