473,320 Members | 1,848 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

apiPlaySound

I'm having a bit of trouble getting sound files to play using this module.
If I pass a folder name along with the file name, for example
"C:\MSAccess\DB\Sounds\AnySound.mid", it works fine. If I pass a more
appropriate name, for example "C:\Program Files\Access\My DB
Name\AnySound.mid", there is no sound. It appears the spaces in the folder
name causes a problem. I would like to install the databases in the Program
Files folders. Any have any ideas? Thanks.
Nov 13 '05 #1
2 1566
How are you calling it?

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

"Charles Rossi" <Ch**********@hvc.rr.com> wrote in message
news:xr*****************@twister.nyc.rr.com...
I'm having a bit of trouble getting sound files to play using this module.
If I pass a folder name along with the file name, for example
"C:\MSAccess\DB\Sounds\AnySound.mid", it works fine. If I pass a more
appropriate name, for example "C:\Program Files\Access\My DB
Name\AnySound.mid", there is no sound. It appears the spaces in the
folder name causes a problem. I would like to install the databases in
the Program Files folders. Any have any ideas? Thanks.

Nov 13 '05 #2
On Sun, 14 Aug 2005 20:02:37 GMT, "Charles Rossi"
<Ch**********@hvc.rr.com> wrote:

Depending on exactly what you're doing, such paths typically need to
be wrapped with doublequotes.

-Tom.

I'm having a bit of trouble getting sound files to play using this module.
If I pass a folder name along with the file name, for example
"C:\MSAccess\DB\Sounds\AnySound.mid", it works fine. If I pass a more
appropriate name, for example "C:\Program Files\Access\My DB
Name\AnySound.mid", there is no sound. It appears the spaces in the folder
name causes a problem. I would like to install the databases in the Program
Files folders. Any have any ideas? Thanks.


Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: MLH | last post by:
I've followed the instructions found on Microsoft's site... http://support.microsoft.com/default.aspx?scid=kb;en-us;149119&Product=acc97 Here are those instructions... To play and record...
7
by: Tempy | last post by:
Good day, could you tell me if this possible and if so please could you help me with the code? Tempy *** Sent via Developersdex http://www.developersdex.com ***
5
by: MLH | last post by:
I have a line of code that works when called from a procedure in Access 2.0 form... PlaySound("C:\cr\help\Help0018.wav", 0) I imported what I thought was needed into A97. However, running it...
22
by: MLH | last post by:
I have some audio help files that play fine from within Access 97 and Access 2.0. Both are running on a Windows XP box. But I do not know what program plays the files. If I click Start, Run and...
8
by: MLH | last post by:
I use a mouse-down procedure to trap right mouse clicks and CTRL-Right mouse clicks. Running the procedure must put honey or some other sticky substance into my keyboard because subsequent...
6
by: Dominic Vella | last post by:
Does anyone know why I would be getting a "File not found: mmsystem"? I've tried this: Declare Function sndPlaySound Lib "mmsystem" (ByVal lpszSoundName As String, ByVal wFlags As Integer) As...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.