Play A Sound Clip when Record Appears

  • Thread starter Shane Grunewald
  • Start date
S

Shane Grunewald

Hi;

I have created a database that requeries an underlying
query on a form every five seconds. On this form, there
are two subforms. I would like the database to play a
sound clip when there is a record displayed in one of the
subforms. This would get the attention of the user that
there is something that needs to be done in the database.
The only reason I want it to play the sound is that the
user can multitask such as doing e-mail, etc. Does anyone
have a method of creating a macro or explain how to enter
VB code to have it play a sound?

Any help would be greatly appreciated.

Thank you,
Shane
 
G

Graham R Seach

Shane,

You can play a sound using this
http://www.pacificdb.com.au/MVP/Code/Sound.htm.

AFAIK there's no way to determine when a bound query finishes executing, but
you could use the main form's Timer event to periodically check how many
records are in the subform(s).

Regards,
Graham R Seach
Microsoft Access MVP
Sydney, Australia
 

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