Option Compare Database
Option Explicit
'PlayWaveFile
Declare Function apisndPlaySound Lib "winmm" Alias "sndPlaySoundA" (ByVal filename As String, ByVal snd_async As Long) As Long
Public Function PlayWaveFile(sWavFile As String)
If apisndPlaySound(sWavFile, 1) = 0 Then
'MsgBox "The Sound Did Not Play!"
End If
End Function
Public Sub PlayWaveFile_Cord()
Call PlayWaveFile("C:\Windows\Media\chord.wav")
End Sub