SkippedRecordCount property
Returns the number of records in a data set that were skipped during matching. Returns 0
for data sets with a HowCreated property of geoDataSetDemographic. Read-only Long.
Applies to
Objects: DataSet
Syntax
object.SkippedRecordCount
Parameters
Part | Description |
---|---|
object | Required. An expression that returns a DataSet object. |
Remarks
A record can be either matched, unmatched, or skipped. A matched record is one that is matched to a location on the map. An unmatched record is a record that MapPoint is unable to match to an exact location, and that has not been matched by the CallMatchMethod or MatchRecord method on a Recordset object (or through the Unmatched Records dialog box). A skipped record is either an unmatched record for which matching has been suspended or a record that cannot be matched to the map (such as a blank record, a record with a latitude or longitude coordinate outside the acceptable ranges, or a record that cannot be interpreted as geographic).
To return the number of unmatched records, use the UnmatchedRecordCount property of the DataSet object.
Example
Sub GetSkippedCount()
Dim objApp As New MapPoint.Application
Dim objDataSet As MapPoint.DataSet
objApp.Visible = True
objApp.UserControl = True
Set objDataSet = objApp.OpenMap(objApp.Path & "\Samples\Clients.ptm").DataSets("Sales")
'Check the matched record count of the data set
MsgBox Str(objDataSet.SkippedRecordCount)
End Sub