• Top Members
  • 834 Replies
    2585 Replies
  • 716 Replies
    2026 Replies
  • 331 Replies
    1928 Replies

Using a WAV File in an Access Database

User avatar
Serious Programmer
Posts: 440

Using a WAV File in an Access Database

Wed Nov 05, 2014 4:40 am

In access VBA can be used on Access Forms. To keep this handy this simple little code is used to load .WAV File to play with some of the functions or controls.

Simply this code will work with files found in the "Project Path." Paste the .WAV file that you would like to play in the fold, and simply modify file the code below:
Dim Path_Value As Long
Path_Value = sndPlaySound(CurrentProject.Path & "\WAV FILE.wav", SND_ASYNC)
As you see add the WAV file name where "WAV FILE.wav" is. Then take this and paste it in the control that you want to play this sound.

Post Reply

Return to “Misc”