Is This Content Helpful?
We're glad to know this article was helpful.
With ActiveX Connector, you can use DoZoomToFeatures function of Map object to zoom to the features you are interested in. However, this function also limits the Recordset of the active layer to only those records that satisfy the criteria specified in the function.
For example, the code:
The WHERE expression passed to the DoZoomToFeatures function acts as a filter for the given Layer. Hence, only those features which satisfy the expression will be included in the Recordset.
Set the Recordset's filter to nil ("") as shown below if you need to retain all features in the Recordset.
statelayer.Recordset.Filter.WhereExpression = ""