Bonjour

J'ai un soucis pour lire la valeur placé dans la première colonne et la première ligne d'une datatable.

Voici mon code :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
            Dim PreSuiEnt As String
            Dim Conv As String
            Dim PreSuiEntTable As DataTable
            PreSuiEnt = "select rapports.ChargeSuiviEntPrenom FROM rapports, entreprises WHERE rapports.SIRET=entreprises.SIRET and rapports.competence ='" & BoxComp.Text & "' and  entreprises.RaisonSociale='" & BoxEnt.Text & "'and  SujetProjet='" & BoxSujet.Text.Replace("'", "''") & "';"
            PreSuiEntTable = readrecord(PreSuiEnt)
            Conv = PreSuiEntTable.Rows(0)(0).ToString
            PrenomSuiEnt.Text = Conv
Ce code na marche pas par contre quand j'enlève le "Rows(0)(0)", la valeur qui sort est "Table".

Merci