Hi all
I'm starting to play around with disconnected recordsets to see if they can be used in any of my applications.
The recordset is built in a common module. I can create a form and display the data but I can't get it to work in a report. Code is below:
I created a report with two unbound fields. In the reports open event I entered the following:
me.division = rsCount!division
me.totalcount = rsCount!totalcount
When I run the report it tell me that I cannot assign a value.
Is it possible to use a disconnected recordset in a report and if so how is it set up?
Thanks for any help or suggestions.
I'm starting to play around with disconnected recordsets to see if they can be used in any of my applications.
The recordset is built in a common module. I can create a form and display the data but I can't get it to work in a report. Code is below:
Code:
Public Sub BuildRS
Dim rsCount as DODB.Recordset
Dim lngVarChar As Long
lngVarChar = 50
rsCount.Fields.Append "Division", adVarChar,lngVarChar
rsCount.Fields.Append "TotalCount", adInteger
rsCount.Open
rsCount.AddNew
rsCount!Division = "Home"
rsCount!TotalCount = 5
End Sub
me.division = rsCount!division
me.totalcount = rsCount!totalcount
When I run the report it tell me that I cannot assign a value.
Is it possible to use a disconnected recordset in a report and if so how is it set up?
Thanks for any help or suggestions.