Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problems with the Find method in a dataview

Status
Not open for further replies.

kcj402003

Programmer
Sep 2, 2003
50
US
I'm using the find method of a dataview to find the position of a record. As documented by microsoft, the Find method returns an integer with the index of the DataRowView that matches the search criteria. If more than one row matches the search criteria, only the index of the first matching DataRowView is returned. However, It doesn't always return the first matching index value. Sometimes it's returning the secong index value. Has anyone else experience this? I'm taking a string value from an array as my seach criteria.

strVal = aData(intRow, 0)
ojbDataV.Sort = "fullnam"
intPos = objDataV.Find(strVal)

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top