i am creating a report wherein i need to group by "batches"..
but when i viewed the Report, the same data are printed repeatedly.

here's my code:
VB Code:
  1. Set table_1 = New ADODB.Recordset
  2. table_1.CursorLocation = adUseClient
  3. table_1.Open "Shape {select btch_no from table_cdl} append ({select * from table_cdl} relate btch_no to btch_no) As ChildRecord", mycon1, adOpenStatic, adLockReadOnly, adCmdText
  4.         Set a10999a.DataSource = table_1
  5.         Set table_1.ActiveConnection = Nothing

please help...