1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| Dim oRst As DAO.Recordset
Dim oDb As DAO.Database
Dim sQL As String
'Je n'ai pas vérifié ta requête
sSQL = "SELECT acteur.nom FROM acteur, jouer, films where acteur.codeacteur=jouer.codeacteur and films.codefilm=jouer.codefilm and film.titre='" & Titre.Value & "';"
Set oDb = CurrentDb
Set oRst = oDb.OpenRecordset(sSQL, dbOpenDynaset)
'Tant que non fin du recordset
While Not oRst.EOF
MsgBox oRst.Fields("nom").Value
'Passer au suivant
oRst.MoveNext
Wend
oRst.Close
oDb.Close
Set oRst = Nothing
Set oDb = Nothing |
Partager