Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old November 13th, 2005, 10:18 AM
Susan Bricker
Guest
 
Posts: n/a
Default Msgbox not issuing 'beep'

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 ***
  #2  
Old November 13th, 2005, 10:18 AM
Br@dley
Guest
 
Posts: n/a
Default 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


  #3  
Old November 13th, 2005, 10:19 AM
Keith
Guest
 
Posts: n/a
Default 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


  #4  
Old November 13th, 2005, 10:19 AM
Susan Bricker
Guest
 
Posts: n/a
Default 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 ***
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles