Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Find a record in a datareader
Message
 
À
04/12/2003 04:08:04
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00855308
Message ID:
00855781
Vues:
18
The equivalent of a recordset in .NET is a dataset, not a datareader.

If you use a dataset, there is a Select method in the datatable object that does what you are looking for. Here is the syntax for the Select method.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemdatadatatableclassselecttopic.asp



>Hi Cathi,
>As far as I know, in VB6 application, we can use find method in the recordset to find a record .. so is that mean that it is unavailble in
>VB.NET ?
>
>example:
>
>mSQL= "Select * from Student Order by StudentCode"
>
>rs.open msql,myconn,.. blah blah
>
>rs.find "studentcode = ' "& mycode & " ' "
>
>please advise .. thanks a lot in advance
>
>regards
>Winanjaya
Hector Correa
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform