AnsweredAssumed Answered

Need help with a search tool

Question asked by jbod78 on May 14, 2015
Latest reply on May 14, 2015 by oearley


OK all, I need a little help. Not sure how simple or how complicated this is. For starters I am a recent GIS graduate but not very proficient with model builder/python/vbscript (yet). I inherited a tool that was written in vbscript. Basically it  searches a table, finds the matching information and zooms to the item being searched for. however, as of late, I keep getting a runtime error 91.

This is the code where the error is:

 

pActiveview.PartialRefresh esriViewGeoSelection, Nothing, Nothing

   pfeatureselection.SelectFeatures pqueryfilter, esriSelectionResultNew, False

   pActiveview.PartialRefresh esriViewGeoSelection, Nothing, Nothing

 

No idea what this means. I was hoping for one of two things here:

    1) someone can tell me how to fix this

    2) there is a way to create simpler tool using model-builder

 

Thanks in advance for any help received!!

 

-Joe

Outcomes