Urgent. Cmd btn to Play sound

S

sebastico

I have a table for students personalo data with the field named picutre. This
field has the pictures of all students. In the same table I have another
field named song with mp3 sound for each student. Both fields have the same
code for each student.

I have a form based form the student table which displays the student data
and his picture. I would like to add a cmd button in the form that any time I
display de picture of the student clicking the button will play the sound

The path for students file is C:\OT\Students
The path for mp3 file is C:\OT\sounds

Thank you very much
 
C

Clifford Bass

Hi,

And if that only does Wave files, you could use a Windows Media Player
ActiveX control on your form. Then in code set its URL property to the file
name.

WindowsMediaPlayer.URL = "D:\iTunes\Podcasts\Old Time Radio Comedy\01 All
Gas &amp_ Gaiters - The Bisho.mp3"

The advantage of that would be that the user could start and start it,
and change the volume.

Clifford Bass
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top