Interesting report qs????

gdanalakshmi

Registered User.
Local time
Today, 02:09
Joined
Nov 26, 2002
Messages
102
I have created a temporary table whose data I am feeding to a report.

In the report_open method, I am doing like this

Private Sub Report_Open(Cancel As Integer)

Dim intX As Integer
Dim DB As DAO.Database
Dim qdf As Recordset

Set DB = CurrentDb

Set mrstReport = DB.OpenRecordset("TestTmpTable")
mintColumnCount = mrstReport.Fields.Count

End Sub

In the Detail Format method, I am doing like this
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)

Dim intX As Integer
While Not mrstReport.EOF = True
For intX = 1 To mintColumnCount
'Me("Col" + Format(intX)) = mrstReport(intX - 1)
Me("Col" + Format(intX)) = mrstReport(intX - 1)
Next intX

mrstReport.MoveNext
Wend
End Sub

I am able to see only the last record of the table. I donot know how to fix it.

Help me please...
 
I have done a dynamic crosstab report.
But this case is totally different. I have a table generated dynamically in my program, and my I trying to feed the table to the report. After the report is printed ,, I then delete the table since I will need it no longer.
I donot know how to print all the records in the table to the report???
 
Reports need to have a recordsource. That recordsource can be either a table name or a query name.
 

Users who are viewing this thread

Back
Top Bottom