1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
Dim MAVAR1_1 As DAO.Recordset
Dim MAVAR1_2 As DAO.Recordset
Dim MAVAR1_3 As DAO.Recordset
Dim MAVAR1_4 As DAO.Recordset
Dim MAVAR1_5 As DAO.Recordset
Dim MAVAR2_1 As DAO.Recordset
Dim MAVAR2_2 As DAO.Recordset
Dim MAVAR2_3 As DAO.Recordset
Dim MAVAR2_4 As DAO.Recordset
Dim MAVAR2_5 As DAO.Recordset
Set MAVAR1_1 = CurrentDb.OpenRecordset("SELECT Numéro, Nom, Poste, " & Ligue & " FROM Joueurs WHERE ((poste = '" & Poste1_1 & "') and ([" & Ligue & "] = '" & Player1 & "')) ")
Set MAVAR1_2 = CurrentDb.OpenRecordset("SELECT Numéro, Nom, Poste, " & Ligue & " FROM Joueurs WHERE ((poste = '" & Poste1_2 & "') and ([" & Ligue & "] = '" & Player1 & "')) ")
Set MAVAR1_3 = CurrentDb.OpenRecordset("SELECT Numéro, Nom, Poste, " & Ligue & " FROM Joueurs WHERE ((poste = '" & Poste1_3 & "') and ([" & Ligue & "] = '" & Player1 & "')) ")
Set MAVAR1_4 = CurrentDb.OpenRecordset("SELECT Numéro, Nom, Poste, " & Ligue & " FROM Joueurs WHERE ((poste = '" & Poste1_4 & "') and ([" & Ligue & "] = '" & Player1 & "')) ")
Set MAVAR1_5 = CurrentDb.OpenRecordset("SELECT Numéro, Nom, Poste, " & Ligue & " FROM Joueurs WHERE ((poste = '" & Poste1_5 & "') and ([" & Ligue & "] = '" & Player1 & "')) ")
Set MAVAR2_1 = CurrentDb.OpenRecordset("SELECT Numéro, Nom, Poste, " & Ligue & " FROM Joueurs WHERE ((poste = '" & Poste2_1 & "') and ([" & Ligue & "] = '" & Player2 & "')) ")
Set MAVAR2_2 = CurrentDb.OpenRecordset("SELECT Numéro, Nom, Poste, " & Ligue & " FROM Joueurs WHERE ((poste = '" & Poste2_2 & "') and ([" & Ligue & "] = '" & Player2 & "')) ")
Set MAVAR2_3 = CurrentDb.OpenRecordset("SELECT Numéro, Nom, Poste, " & Ligue & " FROM Joueurs WHERE ((poste = '" & Poste2_3 & "') and ([" & Ligue & "] = '" & Player2 & "')) ")
Set MAVAR2_4 = CurrentDb.OpenRecordset("SELECT Numéro, Nom, Poste, " & Ligue & " FROM Joueurs WHERE ((poste = '" & Poste2_4 & "') and ([" & Ligue & "] = '" & Player2 & "')) ")
Set MAVAR2_5 = CurrentDb.OpenRecordset("SELECT Numéro, Nom, Poste, " & Ligue & " FROM Joueurs WHERE ((poste = '" & Poste2_5 & "') and ([" & Ligue & "] = '" & Player2 & "')) ")
Set Nom1_1.Recordset = MAVAR1_1
Set Nom1_2.Recordset = MAVAR1_2
Set Nom1_3.Recordset = MAVAR1_3
Set Nom1_4.Recordset = MAVAR1_4
Set Nom1_5.Recordset = MAVAR1_5
Set Nom2_1.Recordset = MAVAR2_1
Set Nom2_2.Recordset = MAVAR2_2
Set Nom2_3.Recordset = MAVAR2_3
Set Nom2_4.Recordset = MAVAR2_4
Set Nom2_5.Recordset = MAVAR2_5 |
Partager