Hi,I am trying to label polygons using multiple attributes. I want to combine the attribute values with descriptive text. Each attribute should be represented on a different row of the label. I don't want to include a row in the label if the associated attribute value = 0. I've been able to create the labels, with the text I want, on multiple lines by using this simple expression:"Q1 2013: " & [Q1_2013] & " acres" & vbNewLine & "Q2 2013: " & [Q2_2013] & " acres" & vbNewLine & "Q3 2013: " & [Q3_2013] & " acres" & vbNewLine & "Q4 2013: " & [Q4_2013] & " acres" & vbNewLine & "Q1 2014: " & [Q1_2014] & " acres" & vbNewLine & "Q2 2014: " & [Q2_2014] & " acres" & vbNewLine & "Q3 2014: " & [Q3_2014] & " acres" & vbNewLine & "Q4 2014: " & [Q4_2014] & " acres" & vbNewLine & "2015: " & [Exp2015] & " acres" & vbNewLine & "2016: " & [Exp2016] & " acres" & vbNewLine & "2017: " & [Exp2017] & " acres" & vbNewLine & "Extension Acreage: " & [ExtAc]
This results in a stacked label with a lot of unnecessary rows of zero values, like this:Q1 2013: 0 acresQ2 2013: 0 acresQ3 2013: 0 acresQ4 2013: 0 acresQ1 2014: 0 acresQ2 2014: 133.3 acresQ3 2014: 0 acresQ4 2014: 0 acres2015: 0 acres2016: 0 acres2017: 0 acresExtension Acreage: 0I've figured out how to not label features when a single attribute equals zero, but I haven't been able to figure out how to do this using all of the attributes I want to include in the labels. For example, I've used this expression to label polygons with an attribute value that does not equal zero in the [Q1_2013] field:Function FindLabel ( [Q1_2013] ) if ( [Q1_2013] <> 0 ) then FindLabel = "Q1 2013: " & [Q1_2013] & " acres" end if End Function
In essence, I want to combine the two label expressions above to that I can have a stacked label that includes all of the attributes whose values do not equal zero. I've tried defining a label class with an SQL query that specifies [Q1_2013] <> 0 OR [Q2_2013] <> 0...but that did not give me the expected results. Any advice or suggestions would be greatly appreciated.