Voici le code qui me permet de lire tous les Records d'une table
quelle est la methode pour ne lire qu'un enregistrement a la fois, et voyager dans les record ( movenext, moveprevious, movefirst,....)
Un chti coup de main merci
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9 Dim CnxStaging As New SqlConnection("Data Source=LLUXSAPP311;Initial Catalog=Staging2;Integrated Security=True") CnxStaging.Open() Dim Cmd As New SqlCommand("SELECT Template_domaine FROM TblDomain", CnxStaging) Dim Dr As SqlDataReader = Cmd.ExecuteReader Do Until Not Dr.Read TextBox1.Text &= CType(Dr("Template_domaine"), String) Loop Dr.Close() CnxStaging.Close()
Ou alors je ne suis pas sur la bonne route
Partager