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

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

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

John Campbell 
     
31 days 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 
      
31 days 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 
          
31 days ago
MsgBox "This is line 1" & vbNewLine & "This is line 2", vbInformation, "Information"
Jeff Shepard OP 
      
31 days 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 
     
31 days 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.
 

 
 
 

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 2025 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 2/13/2025 1:58:57 AM. PLT: 2s