简体   繁体   中英

Crystal Report get sum error

I watched video tutorial about Crystal Reports. I am confused because when I click Insert > Summary the Sum , Average and etc. are not on the list of Calculate this summary
这是屏幕截图
I tried to search web but no luck. Please help me fixing this.

That would be because Crystal sees this field as a STRING and can't sum a string. You can write a formula field that will convert a string to a numeric and then do a summary of the formula:

Val ({YourTable.total})

@Icebergman_NewProgrammer, Your Sum field is a nvarcha/nchar or others.

plz check this and insure this int/decimal/numeric etc.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM