Function returnRawCurveSet
Set rawCurveSet = New ADODB.Recordset
rawCurveSet.Open rawCurveSQL, CurrentProject.Connection, adOpenKeyset
returnRawCurveSet = rawCurveSet
end function
subroutine
Dim rawCurveSet2 As ADODB.Recordset
[highlight]rawCurveSet2 = returnRawCurveSet[/highlight]
rawCurveSet2.MoveFirst
MsgBox rawCurveSet2![mw]
end subroutine
I get a compile error; invalid use of property.
What am I missing?
Set rawCurveSet = New ADODB.Recordset
rawCurveSet.Open rawCurveSQL, CurrentProject.Connection, adOpenKeyset
returnRawCurveSet = rawCurveSet
end function
subroutine
Dim rawCurveSet2 As ADODB.Recordset
[highlight]rawCurveSet2 = returnRawCurveSet[/highlight]
rawCurveSet2.MoveFirst
MsgBox rawCurveSet2![mw]
end subroutine
I get a compile error; invalid use of property.
What am I missing?