Expression error
I'm trying to display some address information on a billing invoice like so...
Name
CompanyName
AddressLine1
AddressLine2
City, State Zip
If AddressLine2 doesn't have any data, I want to print City, State, and Zip in it's place. I created this expression which doesn't have any syntax issues but displays #Error when the report is generated. I also tried adding Table and List Item data regions and removing the dataset from the expression but it still returns #Error.
Since #Error isn't very intuitive, I was wondering if anyone could tell me what is wrong with my expression.
Thanks.
=IIF(Len(First(Fields!AddressLine2.Value, "STMTACCTINFO") > 0), First(Fields!AddressLine2.Value, "STMTACCTINFO"), First(Fields!City.Value, "STMTACCTINFO") & ", " & First(Fields!State.Value, "STMTACCTINFO") & Space(1) & First(Fields!ZipCode.Value, "STMTACCTINFO"))
|