Calling wmplayer app

J

Jessie

Hi,

I need to open a specific .wav file by us of a command
button. The wav files are named the phone number of the
current record. Here is the code I have. When I run it it
errors out by saying file not found, but the file is
there, so I am thinking that the syntax is incorrect.

Dim stAppName As String
stAppName = "wmplayer.exe \\tricom1
\Tricom_r\SME\ToClient\Recordings" & ME!HM_Phone & ".wav"

Call Shell(stAppName, 1)


Thanks,
Jessie
 
Top