Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

play audio via ms access form

Posted on 2009-04-24
8
Medium Priority
?
323 Views
Last Modified: 2012-05-06
Hi:
How can I play audio via ms access form?
please
0
Comment
Question by:Mohammad Alsolaiman
  • 4
  • 4
8 Comments
 
LVL 65

Expert Comment

by:rockiroads
ID: 24226928
you could maybe embed a windows media player control then use controls to play it
0
 
LVL 65

Accepted Solution

by:
rockiroads earned 2000 total points
ID: 24227014
On a form, add a windows media player control. In forms design click on Insert/ActiveX control Windows Media Player (if not there add reference)

Note, this is a different way to your other post where I mentioned how to do it all within vba

Say your windows media player control added to the form (you should see a mini looking media player) is called wmp

to play a file you do this

wmp.url "c:\TheTrooper.mp3"

now u can use that control to play the file
0
 

Author Comment

by:Mohammad Alsolaiman
ID: 24232655
i have this error message
object required
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 65

Expert Comment

by:rockiroads
ID: 24233603
what line?

the activex control you added, what did you name it?
whatever you named it, it should be called that in the code when you load and play a file. The example I gave is wmp

Remember the alternatives as well in your other "video" post
0
 

Author Comment

by:Mohammad Alsolaiman
ID: 24236365
i name it "WindowsMediaPlayer1"

0
 
LVL 65

Expert Comment

by:rockiroads
ID: 24236480
so u have a control on your form called WindowsMediaPlayer1 (not vba but form design, added via insert/activex control)

when do u make the call WindowsMediaPlayer1.url = ...
0
 

Author Comment

by:Mohammad Alsolaiman
ID: 24263811
Yes
0
 

Author Closing Comment

by:Mohammad Alsolaiman
ID: 31574288
thanks
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question