Re: VBA Script to Read WMP 11 Database
- From: "Neil Smith [MVP Digital Media]" <neil@xxxxxxxxxx>
- Date: Fri, 06 Apr 2007 01:06:35 GMT
On Thu, 5 Apr 2007 06:36:02 -0700, Lou G
<LouG@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
A couple of years ago, I wrote a custom Access VBA script to keep track of my
Media Player 10 music files. Now that I've ?upgraded? to Media Player 11, my
script doesn't run. Instead, it just produces "-2147467259 automation
error" at the line:
Set objplayer = CreateObject("WMPlayer.OCX")
A far less functional VBS script uses exactly the same line and reads the
WMP 11 database perfectly. Any ideas about how to get into the database in
Access VBA?
See if you have permissions to read that key in the registry to create
the object in the first place : HKEY_CLASSES_ROOT\WMPlayer.OCX should
have read permissions for the user account which is running that
script
The single line above is unrelated to reading the WMP database, you
may have to request access permissions from the user (via WMP) in that
case http://msdn2.microsoft.com/en-us/library/bb262910.aspx
Cheers - Neil
------------------------------------------------
Digital Media MVP : 2004-2007
http://mvp.support.microsoft.com/mvpfaqs
.
- Prev by Date: Re: codec not found
- Next by Date: Re: WMP's FF and RW controls are disabled on MPEG files
- Previous by thread: Re: codec not found
- Next by thread: Re: VBA Script to Read WMP 11 Database
- Index(es):
Relevant Pages
|