Controlling Windows Media Player within Access (1 Viewer)

frustrating

Registered User.
Local time
Yesterday, 17:04
Joined
Oct 18, 2012
Messages
68
Hey all,

Has anyone had luck opening and manipulating Windows Media Player from Access? I'm not talking about embedding via Active X, but actually opening the player, playing it, then closing it.

Code:
Dim Player As WindowsMediaPlayer
Set Player = New WindowsMediaPlayer
Player.url = url
Player.Controls.play

I keep getting the following error:
"automation error.
unspecified error"

Any ideas?
 

Uncle Gizmo

Nifty Access Guy
Staff member
Local time
Today, 00:04
Joined
Jul 9, 2003
Messages
16,245
There was a long thread about media player a few years ago, so it would pay to search the forum.

The other thing to bear in mind is that it is more likely that VB6 users interact with the media player.

Therefore you may find some code on a VB6 form, and often it will hint at how you should construct your code in MS Access, because VB6 and VBA are quite similar.





Sent from Barcelona!
 

Users who are viewing this thread

Top Bottom