Bonjour à tous.
j'ai un problème avec de code suivant qui génère "Erreur d'exécution '9' l'indice n'appartient pas à la sélection"
C'est nProduit(i) qui génère l'erreur.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11 chrSQL = "select numproduit from produits" Set rSt = CurrentDb.OpenRecordset(chrSQL) rSt.MoveLast rSt.MoveFirst Dim nProduit() As Integer For i = 0 To rSt.RecordCount nProduit(i) = rSt("numproduit") rSt.MoveNext Next
Je n'arrive pas à voir d'où est l'erreur.
Merci de votre aide.
Partager