473,396 Members | 1,599 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 8552
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
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
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...

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.