SQL REPORT 如果数字0,要以-显示 (自订程式)

1.新增报表程式码:funtion ReplaceZero
2.于算运式中套用fuction ReplaceZero

http://img2.58codes.com/2024/201067642fbk6uTD9w.png

Public Function ReplaceZero(stockCount As Decimal,replaceStr As String) As String   If stockCount = "0" Then       ReplaceZero=replaceStr   Else       ReplaceZero=Format(stockCount, "#,##0.##")    End IfEnd Function

关于作者: 网站小编

码农网专注IT技术教程资源分享平台,学习资源下载网站,58码农网包含计算机技术、网站程序源码下载、编程技术论坛、互联网资源下载等产品服务,提供原创、优质、完整内容的专业码农交流分享平台。

热门文章