How to play a wave file with a sound?

Gkirkup

Registered User.
Local time
Today, 09:59
Joined
Mar 6, 2007
Messages
628
I have an old playsound() function in my code to play wave files with beeps etc. It uses the apisndplaysound function but my latest version of Access does not include that. So I have commented out that code.
Is there a function that will play wave files, or can anyone suggest one?

Robert
 
Have you tried the media player? here's a sample of how to use.
 
It would appear that MS is devaluing the old ActiveX method in favor of WASAPI, but I haven't seen VBA examples of this yet.
 
I see that Windows Media Player is a control. I want to have one 'Playsound' VBA function. How do I put Windows Media Player into VBA?

Robert
 

Users who are viewing this thread

Back
Top Bottom