G
golshani
Guest
Hello - I am new here. I see there has been some past discussion about embedding windows media player into a form. And there has been little enthusiasm about solutions! But no harm asking again. Basically, I am keeping a MP3 database with descriptions and what not of each file. I am also storing the file path in a text field. I want to make a form, with an embedded little windows media player that will play the file associated with the currently-selected record.
I have no trouble embedding the player as an ActiveX. And there is a filename field in the ActiveX control. If I put in a file path manually, it plays fine. Unfortunately, I cannot figure out the syntax for having that filename refer to a field in the form or in my table.
Then I was trying to figure it out in the VB code - activating the player for that file with a button I added. But I couldn't quite figure out how to access the controls for it, and with everything I tried, nothing happened (not even error messages!). But I prefer not to do it this way since it adds an extra button.
Any ideas? Suggestions? I guess I could spawn an external media player though I would rather have it right there in the form for ease of use.
Thanks!
-Eden
I have no trouble embedding the player as an ActiveX. And there is a filename field in the ActiveX control. If I put in a file path manually, it plays fine. Unfortunately, I cannot figure out the syntax for having that filename refer to a field in the form or in my table.
Then I was trying to figure it out in the VB code - activating the player for that file with a button I added. But I couldn't quite figure out how to access the controls for it, and with everything I tried, nothing happened (not even error messages!). But I prefer not to do it this way since it adds an extra button.
Any ideas? Suggestions? I guess I could spawn an external media player though I would rather have it right there in the form for ease of use.
Thanks!
-Eden
Last edited: