MatchedRecordCount property

Returns the number of records from a data set that are matched to locations on the map. Returns 0 for data sets with a HowCreated property of geoDataSetDemographic. Read-only Long.

Applies to

Objects:  DataSet

Syntax

object.MatchedRecordCount

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.

To return the number of skipped records, use the SkippedRecordCount property of the DataSet object.

Example

    Sub GetMatchedCount()
    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("Clients")
    'Check the matched record count of the data set     MsgBox Str(objDataSet.MatchedRecordCount)   End Sub