sorting - How i sort The Crystal report when passing Group by query -
i have report (which in crystal report 9) . send query vb 6 crystal report like.
qur = "select copmanyid, product_name, trans_date1, bno, mrp, exp_date, sum(quantity) qty , sum(bonus) bon q_saledetail trans_date1=# " & dt1.value & " # , (invno between " & val(text1.text) & " , " & val(text2.text) & ") , tid='sv' group copmanyid, product_name, bno, mrp, exp_date, trans_date1 order copmanyid " this query selected q_saledetail have invno, trans_date1 , tid , filed below:
but when open in crystal report result this: (which not sorted companyid
companyid product_name packing mrp bno exp_date qty bon 201016 carbapin 20tab 165 40 30-dec-17 100 0 201011 citofast 10tab 260 61 30-oct-17 30 0 201011 cogin syp 10tab 270 i003 30-jun-18 50 0 201011 melonex 2mg. 460 td51 30-mar-17 20 0 201011 neulin tab 10tab 680 td53 30-mar-17 4 0 201016 olonco 3 25tab 93 0002 30-oct-17 50 0 201016 olonco 6 25tab 156 0002 30-oct-17 50 0 201011 topamid 50m. 200 762 30-may-17 30 0 what do???
you'll have create group in crystal reports based on companyid. sort it, , allow headers , footers each companyid if want them.
Comments
Post a Comment