Hello,
This seems like it should be very easy, but I cannot get this to work.
I have to use SQL because I have layers with sync or keep track of created and updated features enabled.
In a nutshell, I created a column titled 'entertotalnocomplaints'. Note, this is a field map app the deputies are using. As of right now the deputies must count the number of complaints received on one address and then enter the total into this column. I feel I should be able to count the number of complaint fields that have text and return that total count to the field 'entertotalnocomplaints'. So count those with text and return a numeric number to the 'entertotalnocomplaints' field.
Upon some research of this forum this is what I have come up with so far, obviously it doesn't work. I would really appreciate some help. Thank you.
SQL statement that I put in the calculate field
entertotalnocomplaints =
def FieldCount(complaint, complaint1, complaint2, complaint3, complaint4, complaint5, complaint6, complaint7, complaint8, complaint9, complaint10):
fields = [complaint, complaint1, complaint2, complaint3, complaint4, complaint5, complaint6, complaint7, complaint8, complaint9, complaint10]
return count
Thank you!