FrancisC
Mar 29th, 2000, 12:58 AM
I am trying to write a function that will return a recordset:
Property Get QueryResult() As Recordset
Dim ado as New Recordset
'Other declarations and execution of the query here
QueryResult = ado
End Property
The line 'QueryResult = ado' gives me an error: 'Inalid use of Property'. Can someone tell me how I can pass this recordset as a variable ?
Thanks
Property Get QueryResult() As Recordset
Dim ado as New Recordset
'Other declarations and execution of the query here
QueryResult = ado
End Property
The line 'QueryResult = ado' gives me an error: 'Inalid use of Property'. Can someone tell me how I can pass this recordset as a variable ?
Thanks