Solved SOUND ON ERROR

georg0307

Registered User.
Local time
Today, 09:47
Joined
Sep 11, 2014
Messages
91
Dear All,

in attachment a very simple one field DB, I have created a formatting condition in order to avoid errors (begin with 9* and must be 9 characters.

Is it possible that on error the PC produce AN ALARM SOUND?

Thanks in advance
 

Attachments

Yes, that is possible. No, avoid it. That sound is going to become very annoying to users.
 
Yes its possible but your users probably will dislike it and just set the speakers on mute.
However, feel free to use the alarm code part of my free utility
 
you can use "beep"

DoCmd.Beep
 
I tried this once. Took my users about 2 days to approach me with pitchforks and torches. They found that it was VERY annoying. They said "to err is human" - and they were VERY human.

The next version was much more visual and a LOT less noisy.
 
Hi to All,

this DB works with a barcode reader wifi connected to pc so the sound is important, on error -- sound.
Thank you but I don't know how to do it.
 
add Validataion to textbox COLLI in design view of your form:
Code:
Private Sub COLLI_BeforeUpdate(Cancel As Integer)
Dim s As String
s = Me!COLLI & ""
If Left$(s, 1) <> "9" And Len(s) <> 9 Then
    DoCmd.Beep
End If
End Sub
 

Users who are viewing this thread

Back
Top Bottom