Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

launching a sound via hyperlink w/o sndrec32.exe

Status
Not open for further replies.

DedCat

MIS
Oct 9, 2002
15
US
So I've got a db with lots of hyperlinks to different sound FX (all wav's), and I use this code connected to a button on a form:

me.link.hyperlink.follow

'link' being the field name where all my hyperlinks live.

This works great on my box, running Access 2003. Windows media player auto launches and the sound plays. but on other systems in the network (which run access 2000) when you click the button, sndrec32.exe launches and plays the sound. here's the problem with that; sndrec32.exe is the player which plays all your windows sounds, like when you empty the trash. When those sounds play, the player remains hidden. I need a player to show itself so I can stop the sound FX, which can somtimes be quite long, or if I want to listen to the next sound. (I use this db as a search engine for SFX, and video clips)

I have tried to force this by pointing all wav files to wmp, but to no avail. I have even deleted sndrec32.exe, but it respawns itself. please help.
 
DedCat,
Have you looked at adding an ActiveX control (Media Player) to your Access form and playing the sound from there instead of spawning an external application?

CMP

[small]For the best results do what I'm thinking, not what I'm saying.[/small]
(GMT-07:00) Mountain Time (US & Canada)
 
Thats a great idea. I haven't used ActiveX control before, but I'll do a little reading and see if I can get it to work. The class I took last year mentioned them briefly. Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top