Re: DataView.Find by Charles
Charles
Thu Nov 11 16:08:24 CST 2004
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
"Jeff Dillon" <jeff@removeemergencyreporting.com> wrote in message
news:%23Y6MsdDyEHA.1192@tk2msftngp13.phx.gbl...
>
> order by LastName Desc
>
> vs
>
> order by LastName Asc
>
>
> Jeff
> "Charles A. Lackman" <Charles@CreateItSoftware.net> wrote in message
> news:u3wggZDyEHA.3840@tk2msftngp13.phx.gbl...
>> 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
>>
>>
>
>