Play sound on event

G

Guest

Is there an easy way to play a wav sound on an event - say when the mouse is
moved over a control? I'm using Access 2k and Win2000.
 
J

Jeff Conrad

Hi,

Here is a past post of mine on this subject.

Follow this link to Allen Browne's site:

http://members.iinet.net.au/~allenbrowne/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 GotFocus 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

Hope that helps,
 

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