Record variable

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
Thanks Allen. However is there a way I can send a single record from the
recordset?
 
Not sure I understand what you are trying to do, Steve.
Perhaps someone else does.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top