T
Tom Grillot
I have a report for which the recordset is an adodb command. The code looks
like this:
Private Sub Report_Open(Cancel As Integer)
Dim cmd As ADODB.Command
Set cmd = New ADODB.Command
With cmd
.ActiveConnection = CurrentProject.Connection
.CommandType = adCmdStoredProc
.CommandText = "spQtrlySvcRpt_3"
Set Me.Recordset = .Execute
End With
The report populates all the fields correctly, but when I try to get a sum
in the Report Footer I get "#Error":
----------Report Footer------------------------------
Textbox Control Source: =sum([Cnt])
Where [Cnt] is a valid field in the recordset.
Any help is appreciated.
Thanks,
Tom
like this:
Private Sub Report_Open(Cancel As Integer)
Dim cmd As ADODB.Command
Set cmd = New ADODB.Command
With cmd
.ActiveConnection = CurrentProject.Connection
.CommandType = adCmdStoredProc
.CommandText = "spQtrlySvcRpt_3"
Set Me.Recordset = .Execute
End With
The report populates all the fields correctly, but when I try to get a sum
in the Report Footer I get "#Error":
----------Report Footer------------------------------
Textbox Control Source: =sum([Cnt])
Where [Cnt] is a valid field in the recordset.
Any help is appreciated.
Thanks,
Tom