我有 2 个小数字段:GrossSalary 和 Deductions。在报告中,我创建了一个名为 NetSalary 的公式字段,即:
If Not IsNull({SalaryDetails.GrossAmount}) Then
{SalaryDetails.GrossAmount} - {SalaryDetails.Deduction}
当数据可用时,报告会正确运行,但如果没有,我会收到以下错误
A number, currency amount,date,time, or date-time is required here.
Details:errorKind
Error in File tempxxxxxxxxx.rpt:
Error in formula NetAmount:
'If Not IsNull({SalaryDetails.GrossAmount}) Then
'
A number,currency amount,date,time, or date-time is required here.
Details:errorKind
我怎样才能解决这个问题?