Mettre un fichier son (mp3) dans un cadre d'objet indépendant
Mettre un fichier son (mp3) dans un cadre d'objet indépendant - VB/VBA/VBS - Programmation
MarshPosté le 23-05-2003 à 23:06:25
j'ai mis dans un champ type [Objet OLE] un fichier mp3, la lecture se passe très bien à partir de la table.
Par contre, je n'arrive pas à lire ce fichier dans un cadre d'objet indépendant.
Voici mon ptit code, contrôle OLE1 activé :
---------------------------------------------------------------- Private Sub OLE1_Click() Dim OLE1 As Object Set bd = CurrentDb Set jeu = bd.OpenRecordset("select [mon_champ_OLE] from ma_table where champ1='truc_machin'" ) Set OLE1 = jeu![mon_champ_OLE]
End Sub ----------------------------------------------------------------
Si qqn peut m'aider ca serait kewl
--------------- Joy is not in what we own...it's in what we are
Marsh Posté le 23-05-2003 à 23:06:25
j'ai mis dans un champ type [Objet OLE] un fichier mp3, la lecture se passe très bien à partir de la table.

Par contre, je n'arrive pas à lire ce fichier dans un cadre d'objet indépendant.
Voici mon ptit code, contrôle OLE1 activé :
----------------------------------------------------------------
Private Sub OLE1_Click()
Dim OLE1 As Object
Set bd = CurrentDb
Set jeu = bd.OpenRecordset("select [mon_champ_OLE] from ma_table where champ1='truc_machin'" )
Set OLE1 = jeu![mon_champ_OLE]
End Sub
----------------------------------------------------------------
Si qqn peut m'aider ca serait kewl
---------------
Joy is not in what we own...it's in what we are