A voir également:
- Imbrication de datareader
- Logiciel imbrication tole gratuit - Télécharger - Outils professionnels
- Trop de niveaux d'imbrication de champs ✓ - Forum Excel
- [Shell] imbrication if ... else ✓ - Forum Shell
- Comment imbriquer une url de redirection dans du php ✓ - Forum PHP
Dim reader1 As SqlClient.SqlDataReader = command.ExecuteReader()
While reader1.Read()
Command.CommandText = "SELECT count(Qte_vendu) FROM vente where id_produit='" & reader1(0) & "'"
Dim reader2 As SqlClient.SqlDataReader = command.ExecuteScalar()
if reader2() then System.Console.WriteLine ( "Quantité disponible :" & reader1(1)-reader2(0)
reader2.close
End While
avant While reader1.Read(), faut que tu fasses If reader1.HasRows() then
Et pour le reader deux, juste après Dim reader 2, faut faire
If reader2.HasRows() then
while reader2.Read()
end while
end if
Si ça marche pas, dis-moi l'erreur que tu as