如上图,我如何去除多余的那个 RecordDate,in,out 那一行?
  dsCompanyRecords ds = new dsCompanyRecords();  
  sqlDA.Fill(ds,"TCompany"); //Fill the dsCompanyRecords from my database
  ReportDocument myReport = new ReportDocument();
  myReport.Load("rptCompany.rpt");
  myReport.SetDataSource(ds);
  crystalReportViewer.ReportSource = myReport;

解决方案 »

  1.   

    Select distinct * into # from #T--排除重复记录结果集生成临时表#这个改sql就行了。
      

  2.   

    过滤重复记录(只显示一条)Select * From HZT Where ID In (Select Max(ID) From HZT Group By Title)
      

  3.   

    新手,没明白。
    RecordDate In Out Balance Reason 字段的内容都不会重复的。
    所以应该不是重复记录的问题
      

  4.   

    把RecordDate,in,out 放在表头,不要放在Detail里
      

  5.   

    数据源里面去重啊。取的时候distinct 或者取出来之后去重
      

  6.   

    @fhpu168说的是可以的,下午时候看到效果了。
    @wxr0323,我很想知道为什么是“去重”问题?
    对于  
    1,AA,US-001,US,1/1/2007,100,50,50,Buy toys
    2,AA,US-001,US,2/1/2007,50,0,150,Earn
    这个应该是不同的记录吧?
      

  7.   

    How to process via SQL ?