I am trying to select all values with Null by using the SelectLayerByAttribute_management. But the Fieldname in the where-clause is alterable by using the input-parameter.
That is what i tried:
if inputValue == "Null": ap.SelectLayerByAttribute_management(inputFeature,"NEW_SELECTION", inputFieldname +"IS NULL")
Does somebody have an idea what I did wrong? That's the error message i get: ExecuteError: ERROR 000358: Invalid expression Failed to execute (SelectLayerByAttribute).