Davix007

count the rows from layer have "Page Definition Query" activated

Discussion created by Davix007 on Dec 5, 2012
Latest reply on Dec 24, 2012 by jeffmatson
how i can calculate the rows from a layer have "Page Definition Query" activated?
i need the total of rows when the "Page Definition Query" is active and not the real total from the layer.

i try with this code but dont work like i want, because this get all record the layer have.
     Dim pdoc As IMxDocument
    Dim pmap As IMap
    Dim pfi As IFeatureLayer
    Dim pfc As IFeatureClass
    
    Set pdoc = ThisDocument
    Set pmap = pdoc.activeView.FocusMap
    Set pfi = pmap.Layer(1)
    Set pfc = pfi.FeatureClass
    
    MsgBox (" features: " & pfc.FeatureCount(Nothing))

cheers.

Outcomes