I have a function for a parameter for the users to select dates in the past and they rely on the canned functions already in crystal. For instance:
If psRunPeriodParameter = "Yesterday" Then
CurrentDate - 1
Else
If psRunPeriodParameter = "Week To Date" Then
Minimum(WeekToDateFromSun)
Else
If psRunPeriodParameter = "Last Full Week" Then
Minimum(LastFullWeek)
Else
If psRunPeriodParameter = "Month To Date" Then
Minimum(MonthToDate)
Else
If psRunPeriodParameter = "Last Full Month" Then
Minimum(LastFullMonth)
Else
If psRunPeriodParameter = "Last 30 Days" Then
Minimum(Aged0To30Days)
I do not see corresponding functions for future dates. Has anyone ever had to create this?
If psRunPeriodParameter = "Yesterday" Then
CurrentDate - 1
Else
If psRunPeriodParameter = "Week To Date" Then
Minimum(WeekToDateFromSun)
Else
If psRunPeriodParameter = "Last Full Week" Then
Minimum(LastFullWeek)
Else
If psRunPeriodParameter = "Month To Date" Then
Minimum(MonthToDate)
Else
If psRunPeriodParameter = "Last Full Month" Then
Minimum(LastFullMonth)
Else
If psRunPeriodParameter = "Last 30 Days" Then
Minimum(Aged0To30Days)
I do not see corresponding functions for future dates. Has anyone ever had to create this?