By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,155 Members | 2,563 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,155 IT Pros & Developers. It's quick & easy.

Msgbox not issuing 'beep'

P: n/a
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 ***
Nov 13 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Br
In news:Qa***************@news.uswest.net,
Susan Bricker <sl*****@verizon.net> said:
<>
vbYesNo + vbQuestion, "SAVE Record Changes?") ^^^^^^^^^^^^
Would anyone know why the MsgBox is not issuing a 'beep' when the box
is displayed? I get a 'beep' for other MsgBox occurrences?


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
Nov 13 '05 #2

P: n/a
"Susan Bricker" <sl*****@verizon.net> wrote in message
news:Qa***************@news.uswest.net...
<snip> Would anyone know why the MsgBox is not issuing a 'beep' when the box
is
displayed? I get a 'beep' for other MsgBox occurrences?

Hi Sue,

Have you tried using the 'beep' command?

Regards,
Keith.
www.keithwilby.com
Nov 13 '05 #3

P: n/a
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 ***
Nov 13 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.