Concatenate two different_attribute_fields_in_arc_gis

12
Concatenate two different Concatenate two different attribute fields in ArcGIS using VBA Logic Script By Ashok Peddi [email protected]

Transcript of Concatenate two different_attribute_fields_in_arc_gis

Page 1: Concatenate two different_attribute_fields_in_arc_gis

Concatenate two differentConcatenate two different attribute fields in ArcGIS using 

VBA Logic Script

By Ashok Peddi

[email protected]

Page 2: Concatenate two different_attribute_fields_in_arc_gis

Open ArcGIS from Start >All Programs >ArcGIS >ArcMapStart‐>All Programs‐>ArcGIS‐>ArcMap

Page 3: Concatenate two different_attribute_fields_in_arc_gis

If you have aIf you have a shape file add it to Arc Map

Page 4: Concatenate two different_attribute_fields_in_arc_gis

OpenOpen Attribute 

table by right clicking onclicking on 

the shape file in table of 

t tcontents

Page 5: Concatenate two different_attribute_fields_in_arc_gis

Add a field by click on Options‐>Add FieldAdd Field

Page 6: Concatenate two different_attribute_fields_in_arc_gis
Page 7: Concatenate two different_attribute_fields_in_arc_gis

The field which you haveyou have created recently will be added to the 

b blAttribute table

Page 8: Concatenate two different_attribute_fields_in_arc_gis

Fi ld C l l tField Calculator window will open like this 

Right Click on the field(Which 

you have created  just 

now)and select Field CalculatorField Calculator

Page 9: Concatenate two different_attribute_fields_in_arc_gis

Check the advanced check box 

then the Pre‐L i VBALogic VBA Script 

window will be openbe open 

Page 10: Concatenate two different_attribute_fields_in_arc_gis

Declare a variable IdNo as we declare inIdNo as we declare in VB as String . Assign any column filed to it 

hi h t twhich you want to merge or concatenate in the Per‐Logic VBA Script Code Window.Then Concatenate any text or number to ittext or number to it 

like writing “MP”&IdNo .

H I t d tHere I wanted to concatenate MP and 

FALSEID

Page 11: Concatenate two different_attribute_fields_in_arc_gis
Page 12: Concatenate two different_attribute_fields_in_arc_gis

Concatenated Result