Salut,
Rajoute dans ton projet la référence :
Microsoft ActivieX Data Objects 2.5 Library
Dim oRst As New ADODB.Recordset
oRst.Open "select * from t_location", TaConnexionActive, adOpenDynamic, adLockPessimistic
While Not oRst.Eof
grille_location.TextMatrix(i, 0) = matable![n°location]
grille_location.TextMatrix(i, 1) = matable![codeclient]
grille_location.TextMatrix(i, 2) = matable![idvehicule]
grille_location.TextMatrix(i, 3) = matable![immatriculation]
grille_location.TextMatrix(i, 4) = matable![typelocation]
grille_location.TextMatrix(i, 5) = matable![datelocation]
grille_location.TextMatrix(i, 6) = matable![dateretour]
grille_location.TextMatrix(i, 7) = matable![prix]
oRst.MoveNext
Wend
oRst.Close
Set oRst = Nothing
A+
Exploreur
Linux a un noyau, Windows un pépin 