How to play a wave file with a sound? (1 Viewer)

Gkirkup

Registered User.
Local time
, 20:18
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
 

Edgar_

Active member
Local time
, 22:18
Joined
Jul 8, 2023
Messages
431
Have you tried the media player? here's a sample of how to use.
 

The_Doc_Man

Immoderate Moderator
Staff member
Local time
, 22:18
Joined
Feb 28, 2001
Messages
27,200
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.
 

Gkirkup

Registered User.
Local time
, 20:18
Joined
Mar 6, 2007
Messages
628
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

Top Bottom