Hey all, I'm hoping someone can help me out with this -
Hopefully, this doesn't get too complicated:
I've currently got a report based on a Stored Procedure.
This SP returns a list of Projects from a tblProjects table.
Everything is great there.
However, I put in a formula field as follows:
If DatePart("m",CurrentDate) = 10 to 12 Then
If {tblTimeTracking_Forecast.FYear} = DatePart("yyyy", DateAdd("yyyy",1,CurrentDate)) Then
If {tblTimeTracking_Forecast.FQuarter} = 3 Then
"X"
Else If DatePart("m",CurrentDate) = 1 To 3 Then
If {tblTimeTracking_Forecast.FYear} = DatePart("yyyy", CurrentDate) Then
If {tblTimeTracking_Forecast.FQuarter} = 4 Then
"X"
Else If DatePart("m",CurrentDate) = 4 To 6 Then
If {tblTimeTracking_Forecast.FYear} = DatePart("yyyy", DateAdd("yyyy",1,CurrentDate)) Then
If {tblTimeTracking_Forecast.FQuarter} = 1 Then
"X"
Else If DatePart("m",CurrentDate) = 7 To 9 Then
If {tblTimeTracking_Forecast.FYear} = DatePart("yyyy", DateAdd("yyyy",1,CurrentDate)) Then
If {tblTimeTracking_Forecast.FQuarter} = 2 Then
"X"
This returns almost exactly what I need. However, a "boatload" of the projects disappear from the report as a result of inserting this formula field into the report.
I believe this is due to the fact that not all of the Projects listed in tblProjects have a record in tblTimeTracking_Forecast....is there some way of editing this formula to not remove the projects without a record in the tblTimeTracking_Forecast from the report?
Any help would be greatly appreciated!