A
Amit
Hi,
I'm having a problem with displaying the hyphen in the
zipcode in a report when the length of the zipcode is
greater than 5.
In the table, the zipcode is stored as a text, minus the
hyphen.
I used the following code in the "Format" section of the
properties for the zipcode control:
"=IIf(Len([[PersonZip])>5,Format([[PersonZip],!@@@@@-
@@@@),Format([PersonZip],!@@@@@))"
This is not displaying the hyphen when the zipcode has
more than 5 characters. I'm not sure why this is not
working....
If instead of using an "IIf" function, I simply use "!
@@@@@-@@@@", then the zipcode is displayed with the
hyphen - even for zipcodes that only have 5 characters.
Am I not placing the code where it should be placed? Any
help on this will be appreciated.
Thanks!
-Amit
I'm having a problem with displaying the hyphen in the
zipcode in a report when the length of the zipcode is
greater than 5.
In the table, the zipcode is stored as a text, minus the
hyphen.
I used the following code in the "Format" section of the
properties for the zipcode control:
"=IIf(Len([[PersonZip])>5,Format([[PersonZip],!@@@@@-
@@@@),Format([PersonZip],!@@@@@))"
This is not displaying the hyphen when the zipcode has
more than 5 characters. I'm not sure why this is not
working....
If instead of using an "IIf" function, I simply use "!
@@@@@-@@@@", then the zipcode is displayed with the
hyphen - even for zipcodes that only have 5 characters.
Am I not placing the code where it should be placed? Any
help on this will be appreciated.
Thanks!
-Amit