?
Solved

Access 2013 VBA - will playing a WAV file PAUSE processing while it plays?

Posted on 2014-10-27
2
Medium Priority
?
566 Views
Last Modified: 2014-10-28
Will using a commonly available api call to play a wav file from Access VBA, pause processing to stop, until it completes?

I wanted to play 30 seconds of Jeopardy while a program is running unavoidable pre-processing....  found a PlaySound() function call, but it's unlcear if it stops processing while it plays.

Not critical, as it's only a prank and will be removed shortly after the first few times it runs.... just wondered if anyone had experience doing such a thing.

-Bill-
0
Comment
Question by:bcreen
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 44

Accepted Solution

by:
AndyAinscow earned 2000 total points
ID: 40407906
It shouldn't stop the processing.

http://msdn.microsoft.com/en-us/library/windows/desktop/dd743680%28v=vs.85%29.aspx
The SND_ASYNC flag causes PlaySound to return immediately without waiting for the sound to finish playing.
0
 

Author Comment

by:bcreen
ID: 40408146
Thanks.  I tried it, and it works perfectly!
0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question