Media Player

J

Jerry Natkin

I've tried a number of times to use Windows Media Player on an Access 2007
form. I am able to get it from the ActiveX menu, and run it repeatedly from
a button. But once having played something, if I go to design mode or exit
the form the player disappears, and only becomes available if I restart the
application.

Here's the code:

Private Sub Run_Media_Player(sFileName As String)
Player.settings.autoStart = True
Player.URL = sFileName
DoEvents
End Sub

I'd appreciate any help I can get.

Jerry natkin
 
Top