[AccessD] Easy way to play audio files from Access form

jack drawbridge jackandpat.d at gmail.com
Sat Dec 24 18:54:45 CST 2016


Tom,

For what it's worth, I found this and tried it (MS Access 2010  32/  Win 10.

Try a variation of:
Sub test()
Dim s As Object
Set s = CreateObject("SAPI.SpVoice")
s.Speak "Greetings. How are you?"
Set s = Nothing
End Sub

Good luck and Merry Christmas.

On Sat, Dec 24, 2016 at 6:27 PM, Tom Ewald <tewald at wowway.com> wrote:

> What's the easiest way to play a short (couple of seconds) audio file from
> an Access form? I have Access 2013, 64-bit. This should be so easy. The
> closest I've come is using an HTML link to an MP3 file on my desktop, and
> then having to go through Microsoft's stupid warning every time that the
> file I created with my software on my desktop could contain a virus. Good
> grief. It takes longer to get through the unwanted warning than to play the
> file. I'd rather have the file in the table, but I couldn't get that to
> work, either. It's a simple app to help me learn a foreign language, and
> I'd
> like to have the pronunciation available.
>
> Thanks, and Merry Christmas to those who, like me, celebrate it.
>
> Tom Ewald
> Detroit Area
>
> --
> AccessD mailing list
> AccessD at databaseadvisors.com
> http://databaseadvisors.com/mailman/listinfo/accessd
> Website: http://www.databaseadvisors.com
>


More information about the AccessD mailing list