A Allen Browne Apr 21, 2005 #2 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
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
G Guest Apr 21, 2005 #3 Thanks Allen. However is there a way I can send a single record from the recordset?
A Allen Browne Apr 21, 2005 #4 Not sure I understand what you are trying to do, Steve. Perhaps someone else does.