المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Interesting crystal roport problem!?



C# Programming
01-22-2010, 07:00 AM
string from, to;
from = frm.dtp1();
to = frm.dtp2();
sql = "select convert(varchar(10),tim,120) as dates,sum(mone) as totals,count(ID) as totalman from pat where (datepart(mm,tim) like '__' or datepart(mm,tim) like '_') and convert(varchar(10),tim,120) between '" + from + "' and '" + to + "' group by convert(varchar(10),tim,120)";

like that,i use this SQL do my report,then write Sum ({DataTable1.totalman}) and Sum ({DataTable1.totals}) on my crystal report.then run my project
the totalman should be 62,but it shows on report is 62.00,why?i think it should't like that?