D
Dave
I define a VBA funcion with the following signature
Public Function GetPhysicianData(Byval PhysicianId as String) as
ADOB.RecordSet
Within this function I decalre an internal adoRs object that calls the
stored procedure and then do Set GetPhysicianData = adoRS.
I then call this function from my Access form as:
Set adoRS = GetPhysicianData(strPhysicianId)
I am getting a Run time error 3704 - Operation is not allowed when the
recordset is closed.
When I examine the recordset value in the function (e.g. GetPhysicianData) I
can see there is data there. Does this have something do with using an active
connection to get the data.
Public Function GetPhysicianData(Byval PhysicianId as String) as
ADOB.RecordSet
Within this function I decalre an internal adoRs object that calls the
stored procedure and then do Set GetPhysicianData = adoRS.
I then call this function from my Access form as:
Set adoRS = GetPhysicianData(strPhysicianId)
I am getting a Run time error 3704 - Operation is not allowed when the
recordset is closed.
When I examine the recordset value in the function (e.g. GetPhysicianData) I
can see there is data there. Does this have something do with using an active
connection to get the data.