Hey, I need to set the database source to an object that is created on run time...
VB Code:
  1. Global db As Database
  2. Global rs As Recordset
  3.  
  4. Public Function iNit()
  5. Set db = OpenDatabase("C:\agazeus\vb\report\db.mdb")
  6. Set rs = db.OpenRecordset("tb", dbOpenTable)
  7. End Function

Is there any way to set the data source to "rs" for it to print the recordset? Thanks.