monica73174
asked on
MS SQL Reporting format error
Here is the format:
=format(cdec(Fields!SSN.Va lue), "###-##-####")
Error if the value is " ". How to check before convert this field value to decimal?
=format(cdec(Fields!SSN.Va
Error if the value is " ". How to check before convert this field value to decimal?
ASKER
still has error:
Here is the code:
=IIF(IsNumeric(Fields!SPOU SE_SSN.Val ue),format (cdec(Fiel ds!SPOUSE_ SSN.Value) , "###-##-####"), Fields!SPOUSE_SSN.Value)
Error show in the field: #Error
Warning message:
[rsRuntimeErrorInExpressio n] The Value expression for the textbox SPOUSE_SSN contains an error: Conversion from string "" to type 'Decimal' is not valid.
Preview complete -- 0 errors, 1 warnings
Here is the code:
=IIF(IsNumeric(Fields!SPOU
Error show in the field: #Error
Warning message:
[rsRuntimeErrorInExpressio
Preview complete -- 0 errors, 1 warnings
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
It works. Thank you very much for your help!!!
= IIF(IsNumeric(Fields!SSN.V