Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   Templates   Seminars   TechHelp   Forums   Help   Contact   Join   Order   Logon  
 
Home > Forums > Developers
Back to Access Developer Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Two Line MsgBox
Jeff Shepard 
      
12 months ago
My question is:

Is there a way to continue a msgbox into two or lines.
Sami Shamma  @Reply  
             
12 months ago
msgbox "This is line 1" & vbnewline & " This is line 2"
Jeff Shepard OP  @Reply  
      
12 months ago
Sam did you recieve something from PayPal last week? jeff
Sami Shamma  @Reply  
             
12 months ago
Jeff, yes thank you.

my name is Sami not Sam.
Jeff Shepard OP  @Reply  
      
12 months ago
Sami,  I was able to combine four lines into one box.  Thank you for the horsepower  Jeff
Jeff Shepard OP  @Reply  
      
12 months ago
It was a typing error.

John Campbell  @Reply  
     
12 months ago
Or this:

how to add a carriage control or 2nd line to a MS Access msgbox
To add a carriage return (new line) or a second line to a MsgBox in MS Access, you can use the vbCrLf constant or the Chr(13) & Chr(10) character codes. Here's how you can do it:

Using vbCrLf:
vba
MsgBox "This is line one." & vbCrLf & "This is line two."
Using Chr(13) & Chr(10):
vba
MsgBox "This is line one." & Chr(13) & Chr(10) & "This is line two."
Jeff Shepard OP  @Reply  
      
12 months ago
Thank you john,  How can I eliminate the Microsoft Access logo on the box.  Using MsgBox "This is line 1" & vbNewLine & " This is line 2,& "vbInformation",& "Information"

How can I tack on VbInformation,&"Information?
Kevin Robertson  @Reply  
          
12 months ago
MsgBox "This is line 1" & vbNewLine & "This is line 2", vbInformation, "Information"
Jeff Shepard OP  @Reply  
      
12 months ago
"MsgBox "This is line 1" & vbNewLine & "This is line 2", vbInformation, "Information
Is there a "  on the end of the above sentence?

Thanks for the horsepower !!!!!!!!Kevin
John Campbell  @Reply  
     
12 months ago
One other option that I would suggest is sometimes instead of the message box, you actually create a form that looks like a message box.  This way you can add your own messages, titles of the message box and more control to edit the options for what you want the user to do.  This is more work, but allows for more flexibility....

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Developer Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 1/23/2026 6:34:48 AM. PLT: 0s