Ok here is another question.Lets say some of the HOUSE ID fields are empty, how would you modify the expression to say that if the HOUSE is empty/NULL use ACCESS NUMBER to label?
Function FindLabel ( [HOUSE], [NUMBER] ) If IsNull( [HOUSE] ) then Findlabel = [NUMBER] Elseif IsNumeric( [HOUSE] ) then Findlabel = [HOUSE] & [NUMBER] Else FindLabel = [NUMBER] & [HOUSE] End if End Function
You can use this syntax Function FindLabel ( [HOUSE], [NUMBER] ) if IsNumeric( [HOUSE] ) then Findlabel = [HOUSE] & [NUMBER] else FindLabel = [NUMBER] & [HOUSE] end if End Function
Function FindLabel ( [HOUSE], [NUMBER] ) if IsNumeric( [HOUSE] ) then Findlabel = [HOUSE] & [NUMBER] else FindLabel = [NUMBER] & [HOUSE] end if End Function
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.