how can i play a 'wav' file in access 2007

M

markgascoigne

does anyone know how to play a 'wav' file in access 2007. All i want to do
is play a 'wav' file when two conditions are met?
 
D

Damon Heron

Try this:
Function PlaySound(Soundfile As Variant)
PlaySound = Shell("sndrec32.exe /play /close " & Soundfile)
End Function

Then call the function:
PlaySound "C:\lebowski.wav"
using your path to the wav file.

Damon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top