DoCmd.Beep is silent

Ok, don't all computers have a little internal speaker to squalk out beeps (even when there is no sound card)?
What command do I use to get my computer to squalk when a user does something stupid?

DoCmd.ThatWasReallyDumb isn't working either!

Thanks,
David
DavidWareAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

GRayLCommented:
Click Start, Control Panel,Sound and Audio Devices, Volume Tab and make sure mute is not selected.  Alternatively click on the Speaker in the  Task bar/tray and make sure the speaker is on.
0
dsackerContract ERP Admin/ConsultantCommented:
You can try to imbed the beep character in your message (like in a MsgBox command):

MsgBox "There are several beeps " & Chr(7) & Chr(7) & Chr(7) & Chr(7) & Chr(7) & Chr(7) & Chr(7) & Chr(7)

However, most times VBA will print a small box character  instead of passing through that ascii value.
0
flavoCommented:
try the API to use the PC Speaker

Public Declare Function Beep Lib "kernel32" Alias "Beep" (ByVal dwFreq As Long, ByVal dwDuration As Long) As Long

Use it like,
Beep 800, 100
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
DavidWareAuthor Commented:
Sorry, I lost track of this one.

GRayL,
The Control Panel in my Win2K operating system has "Sound and Multimedia", so I opened that and I don't see a "Volume" tab (there is "Sounds", "Audio", and "Hardware" and nowhere is there a "Mute" (except in the "Volume Control" when I double-click the Speaker in the systray, and none are muted.)
On the "Sounds" tab, I scroll through the different sounds (like "Default Beep", which is listed as "ding.wav", but I don't think I'm barking up the right tree, because those use audio files that would go through the sound card and the speakers, and this system makes absolutely no sound at all (and I'm trying to write this ap for systems that don't necessarily have any speakers).  I'm looking for something more system-level that would use the motherboard speaker.
I think that you're on the right track, though because of the very fact that this system makes absolutely no sound at all.  Next time I turn it off, I'll open the case and look at the motherboard.  Maybe there IS NO squalker.

dsacker, I have coded in DoCmd.Beep and nothing happens - wouldn't that be (basicly) the same?

flavo,
I have added the API call as you recommend.  I'll see where that leads.

Thanks for everyone's input and I'll get back here again soon.
David

0
DavidWareAuthor Commented:
The API worked!
Thanks to all.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.