Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms Programming / November 2005

Tip: Looking for answers? Try searching our database.

short message box

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
learningMikey - 01 Nov 2005 19:41 GMT
Hi All ....How can I create a short message box as opposed to very wide? I
want the following message to be displayed in similar format.

This cassette has been rented by:
FirstName LastName
(xxx)-xxx-xxxxx
Please return before renting.

when i put msgbox comman the same appears as

This cassette has been rented by: FirstName LastName (xxx)-xxx-xxxxx Please
return before renting.

And I don't want it this way. Thanks for your help.
Ofer - 01 Nov 2005 19:49 GMT
Try this

msgbox "This cassette has been rented by: " & chr(13) & _
"FirstName LastName " & chr(13) & _
"(xxx)-xxx-xxxxx " & chr(13) & _
"Please return before renting"
Signature

If I answered your question, please mark it as an answer. That way, it will
stay saved for a longer time, so other can benifit from it.

Good luck

> Hi All ....How can I create a short message box as opposed to very wide? I
> want the following message to be displayed in similar format.
[quoted text clipped - 10 lines]
>
> And I don't want it this way. Thanks for your help.
Gerald Stanley - 01 Nov 2005 19:55 GMT
Use the constant vbCrLf to produce the message in the format that you require
e.g.

MsgBox FirstName & " " & LastName & vbCrLf & ... etc

Hope This Helps
Signature

Gerald Stanley MCSD

> Hi All ....How can I create a short message box as opposed to very wide? I
> want the following message to be displayed in similar format.
[quoted text clipped - 10 lines]
>
> And I don't want it this way. Thanks for your help.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.