0

I am trying to stack my text in an attribute table using the field calculator, but it does not seem to be working.

My field name is: Facilities. My attributes are in this format: Public Access\Campground

I want the field to read like this:

Public Access
Campground

So I am using this expression to stack the text:

Replace( [Facilities] ,"\",vbnewline)

But when I run it, it doesn't do anything. Can anyone steer me in the right direction?

1
  • "\" looks like a typo for "\\".
    – whuber
    Commented May 23, 2013 at 20:05

2 Answers 2

1

If you edit the attribute field and put the cursor in the field, with it between access and Campground.
Hit ctrl + enter.
That is hold the control button and hit the enter button at the same time.
That will place a line break in your data.

If you have the mapplex extension it will work with 10.0

Another option with 10.1 is use mapplex to stack labels. (it is included in arcgis desktop) stacklabels

4
  • I know that trick works in excel, but on fortunately it does not work in ArcMap attribute tables. Thanks anyway.
    – cl3
    Commented May 23, 2013 at 20:57
  • The maplex solution would work if I was using the attributes for labels. but the purpose of the field I am trying to populate is for addinng information to a point pop-up in a flex app i am working on.
    – cl3
    Commented May 23, 2013 at 21:00
  • I use it all the time in arcmap labeling. I haven't used it in excel.
    – Brad Nesom
    Commented May 23, 2013 at 23:01
  • @cb3 you should go to your question and edit with that information.
    – Brad Nesom
    Commented May 23, 2013 at 23:02
0

Found my problem. There were some extra points in my dataset, that had null values in the Facilities field. When I field calculated I included the nulls and the expression did not work. I tried to field calculate a selection of just the points that had text in the Facilities field and it worked fine.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.