473,473 Members | 1,936 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

MsgBox how to go on a new line

I am trying to have a message box where the message goes onto a second line

My book is for Access 2000 and I am using 2002. I have tried using the @
sign but it's not working....

Any suggestions?

Thanks guys...

Nov 13 '05 #1
3 8560
vbCrLf

Darryl Kerkeslager
"Paolo" <pr*****@netspace.net.au> wrote in message
news:cs***********@otis.netspace.net.au...
I am trying to have a message box where the message goes onto a second line
My book is for Access 2000 and I am using 2002. I have tried using the @
sign but it's not working....

Any suggestions?

Thanks guys...

Nov 13 '05 #2
"Paolo" <pr*****@netspace.net.au> wrote in message
news:cs***********@otis.netspace.net.au...
I am trying to have a message box where the message goes onto a second line
My book is for Access 2000 and I am using 2002. I have tried using the @
sign but it's not working....

Any suggestions?

Thanks guys...


Paolo, the use of '@' for a line break is obsolete, it no longer works. You
can use vbCRLF, however:

MsgBox "This is the first line" & vbCRLF & "This is the second"

Hope that helps

Nov 13 '05 #3
Randy Harris wrote:
"Paolo" <pr*****@netspace.net.au> wrote in message
news:cs***********@otis.netspace.net.au...
I am trying to have a message box where the message goes onto a second


line
My book is for Access 2000 and I am using 2002. I have tried using the @
sign but it's not working....

Any suggestions?

Thanks guys...

Paolo, the use of '@' for a line break is obsolete, it no longer works. You
can use vbCRLF, however:

MsgBox "This is the first line" & vbCRLF & "This is the second"

Hope that helps


You can still use the @ formatting if you use the Access msgbox rather
than the VBA.Interaction one, e.g.

Eval("Msgbox(""Hello@There@""))

You can also save some typing and 3 bytes (2 for code, 1 at runtime) by
using vbCR instead of vbCRLF :-)
--
This sig left intentionally blank
Nov 13 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
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...
9
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?
14
by: Susan Bricker | last post by:
Hi. I have Access 2003 and I am finding that the font in the text displayed in Msgbox displays it too small. Is there anyway to increase the font size of that text? Regards, SueB *** Sent...
14
by: Ant | last post by:
Hello, I'm a newbie to C#. Does it have a Msgbox function like VB6 i.e. MsgBox "Hello World". What is the equivelant function? Does it have one? Thanks for your time on this simple question
1
by: Jay at SCA | last post by:
I've been having the following issue with a windows service I've created in vb.net (.net fw 1.1): Basically, my service monitors a folder for the creation of any new files of a particular type...
7
by: Anne Richmond | last post by:
I have just returned to my first vb.net project after a few weeks and find I have a problem with Msgbox. The commands I added earlier work OK but any new ones fail to show the prompt value...
4
by: | last post by:
I have about 20 MsgBox occurance in by program, which I use to inform the user of the progress of the program, or ask confirmation of an action, or simply to act separators to various parts of the...
7
by: Bob L | last post by:
I've inserted a MsgBox in some VBScript on line 12 of an .asp page and get the following error: Microsoft VBScript runtime error '800a0046' Permission denied: 'MsgBox' /default.asp, line 12 ...
9
by: Ivan Jericevich | last post by:
In my code below at the line 'response' a blip sound is heard and the program exits the sub -- No MsgBox is displayed. What am I doing wrong? If nonNumberEntered = True Then msg = "Enter...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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...
0
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...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.