DataView Find fails??

  • Thread starter Thread starter Bruce A. Julseth
  • Start date Start date
B

Bruce A. Julseth

Why does this "fail?"

dvRecords.Sort = "PrimaryKey desc"
intRecords = dvRecords.Find(16)

Returns a -1. There is a 16 in the PrimaryKey Column

Thank you...

Bruce
 
Hi Bruce,

I'm not sure the find method can take a literal. Try this instead:

Dim arrayseek(0) As Object

Dim ifind As Integer

Dim vue As New DataView(dsa_radj.Tables(0))

vue.Sort = "imcacct"

arrayseek(0) = "faux account"

ifind = vue.Find(arrayseek)

HTH,

Bernie Yaeger
 
Back
Top