On Thu, 24 Jul 2003 09:43:06 -0400, "Mike" <(E-Mail Removed)> wrote:
>When a form opens, I use a call to play a wav file using Media Player with
>the following code:
>
>Song = "c:\program files\windows media player\mplayer2.exe
>c:\Bully\MyWavFile.wav"
>Call Shell(Song, vbMinimizedNoFocus)
>
>This works OK and it keeps Media Player minimized when the file plays. But
>is there a way in Access to then close media player altogether so that it
>does not stay open (although minimized) in the toolbar? Or, is there a
>better way to play the wav file altogether?
>
>Thanks!
>Mike
>
http://www.mvps.org/access/api/api0011.htm
has code from Dev Ashish to play wav files using API's that works well.
Wayne Gillespie
Gosford NSW Australia