Hi,
I have this code in my Report:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If IsNull(Me.MyGraph.ColumnCount) Then
Me.MyGraph.ChartTitle.Text = "No Data to Display for Previous Month"
Else
Me.MyGraph.ChartTitle.Text = "MyReportName - " & Format(DateAdd("m", -1, Now()), "mmmm")
End If
End Sub
It used to work, and no longer does. I have tried changing "IsNull" to "=0" or ">= 1" with no success. I can get the chart title to display both "No Data to Display for Previous Month", but then it displays that chart title whether or not there is data in the chart. Same goes for displaying "MyReportName".
So, I am guessing that the ColumnCount property is not working for some reason. I am wondering if there is a way to count the rows in the query the report is based on instead?
Any help gratefully received.
Kirsti