Pass the Recordset.
In this example, ShowIt() prints the value of the ID field of the current
record from Table1:
Function Test()
Dim rs As DAO.Recordset
Set rs = dbengine(0)(0).OpenRecordset("Table1")
Call ShowIt(rs)
rs.Close
End Sub
Function ShowIt(rs As DAO.Recordset)
Debug.Print rs!ID
End Function