laptop and a wrench

Bug

IQueryFilterDefinition::PostfixClause does not work correctly to ORDER BY when added to a QueryFilter unless edits are saved first.

Last Published: August 25, 2014 No Product Found
Bug ID Number NIM010578
SubmittedJuly 25, 2007
Last ModifiedJune 5, 2024
Applies toNo Product Found
Version found9.2
Program languageVBA
StatusWill Not Be Addressed

Additional Information

We apologize that we were unable to address this issue within the current product support cycle. If the issue continues to affect your work in a supported release, please contact Technical Support.

Workaround

Use IDataStatistics and IStatisticsResults as an alternate way of getting the maximum value from a field:Private Sub TestPostFixClause() Dim pMxDoc As IMxDocument Dim pFL As IFeatureLayer Dim pCur As IFeatureCursor Set pMxDoc = ThisDocument Set pFL = pMxDoc.ActiveView.FocusMap.Layer(0) Set pCur = pFL.Search(Nothing, False) Dim pData As esriGeoDatabase.IDataStatistics Set pData = New esriGeoDatabase.DataStatistics pData.Field = "TestID" Set pData.Cursor = pCur Dim pStatResults As esriSystem.IStatisticsResults Set pStatResults = pData.Statistics Dim MaxObjectID As String MaxObjectID = pStatResults.Maximum MsgBox MaxObjectIDEnd Sub

Steps to Reproduce

Bug ID: NIM010578

Software:

  • No Product Found

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options