MEA
October 25th, 2004, 05:00 PM
I’m trying to replace state abbreviations with full names. A previous post suggested that I type the following:
Replace ({Name.STATE}, "AR", "Arkansas" );
Replace ({Name.STATE}, "AZ", "Arizona" );
Replace ({Name.STATE}, "CA", "California" );
Replace ({Name.STATE}, "CO", "Colorado" )
But when I do this I only get the last line of code entered. Meaning ‘Colorado’ is the only state abbreviation that is replaced.
Likewise, if I enter:
Replace ({Name.STATE}, "AR", "Arkansas" );
Replace ({Name.STATE}, "AZ", "Arizona" );
Replace ({Name.STATE}, "CA", "California")
‘California’ is the only state abbreviation to change.
I am entering this code into the “Use a Formula as Group Name” in the group expert. How do I get all the state abbreviations to change?
Replace ({Name.STATE}, "AR", "Arkansas" );
Replace ({Name.STATE}, "AZ", "Arizona" );
Replace ({Name.STATE}, "CA", "California" );
Replace ({Name.STATE}, "CO", "Colorado" )
But when I do this I only get the last line of code entered. Meaning ‘Colorado’ is the only state abbreviation that is replaced.
Likewise, if I enter:
Replace ({Name.STATE}, "AR", "Arkansas" );
Replace ({Name.STATE}, "AZ", "Arizona" );
Replace ({Name.STATE}, "CA", "California")
‘California’ is the only state abbreviation to change.
I am entering this code into the “Use a Formula as Group Name” in the group expert. How do I get all the state abbreviations to change?