DataView.Find

  • Thread starter Thread starter Charles A. Lackman
  • Start date Start date
C

Charles A. Lackman

Hello,

I am retrieving data from a database "Order By LastName", when I use a
dataview to find a Last Name it does not give me the first instance of the
Last Name.

ie.

ADataView.Sort = "LastName"
AnInteger=ADataView.find("Smith")
BindingContext(ADataView).Position = AnInteger

If there are more than one "Smith" in the database it goes to the second one
instead of the First one.

What I need is for it to go to the first one.

Any suggestions will be greatly appreciated.


Thanks,
Chuck
 
Hello,

When I Do Desc, It works but everything is backwards. All the records go
from Z - A. I need them to go from A - Z and grab the first one it finds.

ASC takes me to the second one.

Thanks,

Chuck
 
Back
Top