howdy,
i'm trying to build a crosstab report, and for some reason only 1 record (the first record in the returned recordset) is showing up in the detail. here's the code i'm using...
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
' Place the income values and place them in the detail section under
' the appropriate months
Dim intX As Integer
' Verify that rstRecord is not at the end
If Not rstReport.EOF Then
' Make sure that the FormatCount argument is 1 before placing values
'If Me.FormatCount = 1 Then
For intX = 1 To intColumnCount
' Change null values to zero if necessary
Me("Col" + Format(intX)) = xtabCnulls(rstReport(intX - 1))
Next intX
' Move to the next record
rstReport.MoveNext
'End If
End If
End Sub
any thoughts on this? also, the recordset is being closed on the Close event.
mirirom
i'm trying to build a crosstab report, and for some reason only 1 record (the first record in the returned recordset) is showing up in the detail. here's the code i'm using...
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
' Place the income values and place them in the detail section under
' the appropriate months
Dim intX As Integer
' Verify that rstRecord is not at the end
If Not rstReport.EOF Then
' Make sure that the FormatCount argument is 1 before placing values
'If Me.FormatCount = 1 Then
For intX = 1 To intColumnCount
' Change null values to zero if necessary
Me("Col" + Format(intX)) = xtabCnulls(rstReport(intX - 1))
Next intX
' Move to the next record
rstReport.MoveNext
'End If
End If
End Sub
any thoughts on this? also, the recordset is being closed on the Close event.
mirirom