Connecting Tech Pros Worldwide Help | Site Map

Msgbox not issuing 'beep'

Susan Bricker
Guest
 
Posts: n/a
#1: Nov 13 '05
Greetings. I am running Acc 2k3 on Windows XP. I have the following VB
code behind a form in the btnClose_Click event:

Dim intAns As Integer

If blnDataChanged = True Then
intAns = MsgBox("Data has been updated but the record has not been
saved." & _
vbCrLf & vbCrLf & _
"Do you want to save your changes before the window
closes?", _
vbYesNo + vbQuestion, "SAVE Record Changes?")
If intAns = vbYes Then
btnSave_Click
End If
End If


Would anyone know why the MsgBox is not issuing a 'beep' when the box is
displayed? I get a 'beep' for other MsgBox occurrences?

Thanks.
Regards,
SueB

*** Sent via Developersdex http://www.developersdex.com ***
Br@dley
Guest
 
Posts: n/a
#2: Nov 13 '05

re: Msgbox not issuing 'beep'


In news:QaEbe.79$aA2.1869@news.uswest.net,
Susan Bricker <slbrick@verizon.net> said:
<>
[color=blue]
> vbYesNo + vbQuestion, "SAVE Record Changes?")[/color]
^^^^^^^^^^^^
[color=blue]
> Would anyone know why the MsgBox is not issuing a 'beep' when the box
> is displayed? I get a 'beep' for other MsgBox occurrences?[/color]

You will only get a beep for certain types of message boxes. Question
message boxes I don't think beep. Critical ones I think do (and perhaps
others). Try some out (and try the documentation too:)
--
regards,

Bradley

A Christian Response
www.pastornet.net.au/response


Keith
Guest
 
Posts: n/a
#3: Nov 13 '05

re: Msgbox not issuing 'beep'


"Susan Bricker" <slbrick@verizon.net> wrote in message
news:QaEbe.79$aA2.1869@news.uswest.net...
<snip> Would anyone know why the MsgBox is not issuing a 'beep' when the box
is[color=blue]
> displayed? I get a 'beep' for other MsgBox occurrences?
>[/color]
Hi Sue,

Have you tried using the 'beep' command?

Regards,
Keith.
www.keithwilby.com


Susan Bricker
Guest
 
Posts: n/a
#4: Nov 13 '05

re: Msgbox not issuing 'beep'


Bradley,

Thanks for the information. I didn't try other types (vbExclamation,
vbCritical, ...) to see if they beep. Good idea. I just did and they
do. As for checking documentation, I did look at the help information
for MsgBox (inside Access application) and it didn't say anything about
beeping. Combining your response and the following response to my post,
I think I'll use the Beep command before issuing the MsgBox. Thanks for
your response.

Regards,
SueB

*** Sent via Developersdex http://www.developersdex.com ***
Closed Thread


Similar Microsoft Access / VBA bytes