gdanalakshmi
Registered User.
- Local time
- Today, 03:43
- Joined
- Nov 26, 2002
- Messages
- 102
I got some code for generating a dynamic crosstab report.
I am able to see only one row in my report.
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Dim intX As Integer
If Not mrstReport.EOF Then
If Me.FormatCount = 1 Then
For intX = 1 To mintColumnCount
Me("Col" + Format(intX)) = xtabCnulls(mrstReport(intX - 1))
Next intX
For intX = mintColumnCount + 2 To conTotalColumns
Me("Col" + Format(intX)).Visible = False
Next intX
mrstReport.MoveNext
End If
End If
End Sub
I found the sample code in the book was like the above.
How do I display all the reocrds in the report???
Do i have to write a function to do that???
I am able to see only one row in my report.
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Dim intX As Integer
If Not mrstReport.EOF Then
If Me.FormatCount = 1 Then
For intX = 1 To mintColumnCount
Me("Col" + Format(intX)) = xtabCnulls(mrstReport(intX - 1))
Next intX
For intX = mintColumnCount + 2 To conTotalColumns
Me("Col" + Format(intX)).Visible = False
Next intX
mrstReport.MoveNext
End If
End If
End Sub
I found the sample code in the book was like the above.
How do I display all the reocrds in the report???
Do i have to write a function to do that???