playing mp3 files with WMP ActiveX in a form


R

Repent

I see that there is a activex control for WMP in Access2007. If I add it to
a form, how can I setup a command buttom on the form so that an mp3 song
file, residing inside the DB via an attachment field in a table, could be
played inside that ActiveX WMP control?

chris
 
Ad

Advertisements

R

Repent

Also this would be for every record that had an mp3 attachment. While on
that record, pressing hte comman button would play that particular file.

chris
 
A

Arvin Meyer [MVP]

Repent said:
I see that there is a activex control for WMP in Access2007. If I add it
to a form, how can I setup a command buttom on the form so that an mp3 song
file, residing inside the DB via an attachment field in a table, could be
played inside that ActiveX WMP control?
If you have wmp registered on you machine, here is an api that *may* work:

http://www.mvps.org/access/api/api0011.htm

If it does, it will free you from any of the negative problems of using
third party controls.
 
S

sebastico

Hi

I have been trying your suggestion, nevertheless, I don't know how to
declare the Function code in the cmd button. If possible, step by step is
highly appreciated.
 
Ad

Advertisements

D

Douglas J. Steele

I'm not sure I can explain it any better than I already have in the article.
The sample database includes all the code you need.
 
S

sebastico

Hi

I followed the instruction. However, when I click the "?" button Microsoft
Visual Basis display:
Compile error:
Ambiguos name detected: ahtAddFilterItem

Could help me to fix this error. Just in case I'm working with MS Access 2003.

Thank you very much indeed
 
D

Douglas J. Steele

That error means you have the function ahtAddFilterItem twice in your
application.

While in the VB Editor, use Ctrl-F to find Function ahtAddFilterItem in the
entire database. Assuming they're the same, delete one of them.
 
Ad

Advertisements

R

rogerdaleowens

I see that there is a activex control for WMP in Access2007. If I add itto
a form, how can I setup a command buttom on the form so that an mp3 song
file, residing inside the DB via an attachment field in a table, could be
played inside that ActiveX WMP control?

chris
There is an ActiveX control 'Audio Player ActiveX' This control does work.The only thing is I can't find a place to purchase it. It is shareware and it gives you some time to use it then it will stop working. If either you find the key to this software or a place to purchase it then re-post here.
 

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

Similar Threads


Top