Solved

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

Posted on 2014-10-27
2
554 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 500 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Windows Script Host (WSH) has been part of Windows since Windows NT4. Windows Script Host provides architecture for building dynamic scripts that consist of a core object model, scripting hosts, and scripting engines. The key components of Window…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
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 how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

705 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