Something like
VB Code:
  1. Dim sSQL As String
  2. sSQL = "SELECT name,class,group,attend,date FROM yourtable "
  3. adoRs.Open sSQL, cnobject
  4.  
  5. 'then you could insert the results of your recordset into a temp
  6. 'table to which your crystal report was bound