I want to be able to play/stop a specific audio file from an Access form database. Ideally, I click on a button to play the file and when I release the button, it stops. I was thinking of using the following library - but can only seem to play an audio file - to the end.
Private Declare Function PlaySound Lib "winmm.dll" Alias "PlaySoundA" (ByVal lpszName As String, ByVal hModule As Long, ByVal dwFlags As Long) As Long
Any guidance would be greatly appreciated.