How do i create a function to return a
Access table that i may read from somwhere
else in my project.

This is what i have so far... but I think its returning the
wrong thing... as well where would i use the .close ?

VB Code:
  1. Public Function getRecordset(Table As String) As Recordset
  2. Dim dbsBlastRoom As Database
  3.  
  4.  
  5. Set dbsBlastRoom = OpenDatabase(App.Path & "\blstroom.mdb")
  6. Set getRecordset = dbsBlastRoom.OpenRecordset(Table)
  7.  
  8. myRecordset.Close
  9. dbsBlastRoom.Close
  10. End Function
  11.  
  12.  
  13. Seahag