A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Show message w/ long Character String



 
 
Thread Tools Display Modes
  #1  
Old November 19th, 2004, 06:39 PM
Vic
external usenet poster
 
Posts: n/a
Default Show message w/ long Character String

When a user saves a record to the database, some checking
routines are executed. If the checking routines fail, I
genenrate a string w/ everything that failed and display
it in a message box. However, this message is sometimes
to big to show in a message box and eventually trucating
the data that needs to be displayed. I would like to
somehow popup a form with a text box or something that
will show the message. I will need to pass a string
variable to that other form. What is the best way to do
this. Can somebody please help.

TIA,
Vic
  #2  
Old November 19th, 2004, 07:25 PM
fredg
external usenet poster
 
Posts: n/a
Default

On Fri, 19 Nov 2004 10:39:28 -0800, Vic wrote:

When a user saves a record to the database, some checking
routines are executed. If the checking routines fail, I
genenrate a string w/ everything that failed and display
it in a message box. However, this message is sometimes
to big to show in a message box and eventually trucating
the data that needs to be displayed. I would like to
somehow popup a form with a text box or something that
will show the message. I will need to pass a string
variable to that other form. What is the best way to do
this. Can somebody please help.

TIA,
Vic


In the event where you wish to open the message box, code:
Dim strMessage as String
strMessage = "blah blah blah" & vbNewLine & "More Blah blah"
DoCmd.OpenForm "frmMessage", , , , , acDialog, strMessage

Create an unbound form.
Add an unbound text control and a command button.
Set the command button CanGrow property to Yes.
Name this form "frmMessage"
Code the command button to close the form:
DoCmd.Close acForm, "frmMessage"

Code the form's Load event:
If Not IsNull(Me.OpenArgs) Then
Me![ControlName] = Me.OpenArgs
End If


When the message form opens the label will display whatever text you
sent it. When you click the command button, the form will close and
the event processing will continue.
--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.
  #3  
Old November 19th, 2004, 10:37 PM
John Nurick
external usenet poster
 
Posts: n/a
Default

Hi Vic,

Pass the string in the OpenArgs argument of DoCmd.OpenForm, and
(probably) set the WindowMode argument to acDialog.

On Fri, 19 Nov 2004 10:39:28 -0800, "Vic"
wrote:

When a user saves a record to the database, some checking
routines are executed. If the checking routines fail, I
genenrate a string w/ everything that failed and display
it in a message box. However, this message is sometimes
to big to show in a message box and eventually trucating
the data that needs to be displayed. I would like to
somehow popup a form with a text box or something that
will show the message. I will need to pass a string
variable to that other form. What is the best way to do
this. Can somebody please help.

TIA,
Vic


--
John Nurick [Microsoft Access MVP]

Please respond in the newgroup and not by email.
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Troubleshoot the SendObject method Nikky_Pickles General Discussion 1 August 30th, 2004 07:40 AM
Outlook Express is slow ava cohen Outlook Express 18 August 27th, 2004 12:17 AM
msimn.exe-Application error message Blondenblue_uk Outlook Express 2 July 23rd, 2004 01:03 PM
HELP!! Lost all messages in my INBOX!!! Jack Sprat Outlook Express 7 July 1st, 2004 09:14 PM


All times are GMT +1. The time now is 10:30 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.