Play WAV file

J

Jeff Conrad

Hi Bill,

That was the first question I ever asked in the Access newsgroups.
Brings back memories....sniff...

Sorry.
:)

Follow this link to Allen Browne's site:

http://users.bigpond.net.au/abrowne1/func-04.html

1. Create a new module and add in the code as instructed
2. Then just add code like this to whatever event you
want. Such as Form_Open or something.

=PlaySound("C:\StarWarsTheme.WAV")

Make sure you include the full path and extension.

There is also code here, but I have not used this:

http://www.mvps.org/access/api/api0011.htm
 
B

Bruce M. Thompson

I have a WAV file I would like to play upon opening a form. How do I do that?

You will find code to allow you to play a .WAV file on the following page at The
Access Web:

Play MIDI/Avi/Wav files
http://www.mvps.org/access/api/api0011.htm

You may need to test the Form's Open or Load event procedures to see where you
get the best performance - you might even need to invoke the referenced code
just before the form is actually opened. If you aren't familiar with, or don't
feel comfortable with, VBA code, then you might not want to tackle this method.
If you just need a little handholding to get yourself started, post back and I'm
sure someone will pick up on it and give you a hand.
 

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