473,545 Members | 1,995 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 ***
Nov 13 '05 #1
3 3769
Br
In news:Qa******** *******@news.us west.net,
Susan Bricker <sl*****@verizo n.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
"Susan Bricker" <sl*****@verizo n.net> wrote in message
news:Qa******** *******@news.us west.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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
31799
by: Leo | last post by:
hi there i want python to do a beep. in the docu i found in tkinter the method bell() but the script: import Tkinter Tkinter.bell() gives the error:
2
3781
by: douh | last post by:
In a customer form I have a field, cust_mess that is popluated with information that will be displayed when an invoice is generated. Obviously this info is customer specific. Ie. customer Tommy Jones tooling wants his items shipped Roadway Freight always. We will enter roadway freight in the cust_mess field via the cuatomer form. When I...
2
2804
by: Paul | last post by:
I'm using Acess 2000. There use to be a way to put a title, icon, sound and put texts in separate lines using the MsgBox in earlier versions of Access. Can this still be done in Access 2000 without actually creating a pop-up modal form? Thanks in advance.
9
16458
by: Weaver | last post by:
I would like to force a new line within the output string of MsgBox. Anyone know how to do this?
17
2611
by: MLH | last post by:
Can I control what text appears on msgbox function buttons? Sure do like NOT having to build a form to show a msg and solicit a YES/NO response. MsgBox function is a great solution for that. Sure would like NOT to have to build a form to show a msg and solicit a BIG/LITTLE or ON/OFF or RED/BLUE response. Wish I could pop up a msgbox...
3
3687
by: Tim Marshall | last post by:
For making a custom message box, ie, an Access form, instead of the msgbox function, I'd like to be able to use the same icons as are available for a message box function. A picture control with some reference to a picture is the answer, of course, but I'm wondering if the graphics for vbquestion, vbexclamation, vbcritical, vbinformation are...
6
8879
by: fripper | last post by:
Is it possible to display a message box (using the MSGBOX function) without the beep? Thanks.
2
3223
by: Parasyke | last post by:
I have an email Sub set up that works fine except upon a successful send I get a blank message box with just an OK button. How can I change this to read something different? I have no event handler at all set up yet, but still get the MsgBox... Thanks! Private Sub SendEmail_Click() On Error GoTo Err_SendEmail_Click DoCmd.SendObject...
11
2007
by: MLH | last post by:
If MsgBox(sMyCaption & " is already open@" _ & "Do you want to open a second instance of this database?@", _ vbYesNo Or vbQuestion Or vbDefaultButton2) = vbYes Then Exit Function What's the purpose behind the @ signs in the above msgbox fn?
0
7478
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7923
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7437
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5984
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5343
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4960
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3466
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1901
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.