PC Review


Reply
Thread Tools Rate Thread

Message Text is Blank

 
 
=?Utf-8?B?REVJ?=
Guest
Posts: n/a
 
      8th Nov 2005
I am using VBA code in MS access to open an Outlook mail message and populate
the To, Subject, and message text (email body) fields. It works fine on my
workstation, but the message body comed up blank when another workstation
uses the database, runs the code, etc. The To and Subject fields populate,
but the message text is blank. No error message comes up, and the user can
type text and send the email fine.

Is there a setting in Outlook that I need to change to allow the message
text to populate? Is it blocking an unsafe exporession by chance? Has
anyone had this problem before?

Thanks,

DEI
 
Reply With Quote
 
 
 
 
=?Utf-8?B?RXJpYyBMZWdhdWx0IFtNVlAgLSBPdXRsb29rXQ==
Guest
Posts: n/a
 
      8th Nov 2005
What versions of Outlook?
Are you setting Body or HTMLBody?
Can you show your code please?

--
Eric Legault (Outlook MVP, MCDBA, old school WOSA MCSD, B.A.)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"DEI" wrote:

> I am using VBA code in MS access to open an Outlook mail message and populate
> the To, Subject, and message text (email body) fields. It works fine on my
> workstation, but the message body comed up blank when another workstation
> uses the database, runs the code, etc. The To and Subject fields populate,
> but the message text is blank. No error message comes up, and the user can
> type text and send the email fine.
>
> Is there a setting in Outlook that I need to change to allow the message
> text to populate? Is it blocking an unsafe exporession by chance? Has
> anyone had this problem before?
>
> Thanks,
>
> DEI

 
Reply With Quote
 
=?Utf-8?B?REVJ?=
Guest
Posts: n/a
 
      8th Nov 2005
Thanks for the reply. I do not know what version of Outlook it is, but it
might be older than 2003, which is on my machine, but I doubt it.

I am using the SendObject Method in a module in MS Access. The code is
below. I would be OK with using some automation code that opens the Outlook
app, creates a message, etc., but I tried to use an example taken from
Microsoft.com for Access 97 but could not get that to work. Maybe that is a
better solution. I am trying to create a plain test message via the argument
below.

I am using Access 2003. Does it have something to do with the MS Outlook
Security update. This is very frustrating.

Thanks again.

Dim em as String
em = Forms!frmREQUESTS.EMAIL

DoCmd.SendObject , , acFormatTXT, em, , , "Catering Request Confirmation #" &
Forms!frmREQUESTS.REQCON, _
"Nutrition Services has received your recent catering order for:" & vbCr &
vbCr & _
"Date: " & Forms!frmREQUESTS.EVENTDATE & vbCr & _
"Time: " & Forms!frmREQUESTS.BEGX & vbCr & _
"Location: " & Forms!frmREQUESTS.BLDGRM & vbCr & _
"Number Attending: " & Forms!frmREQUESTS.NUMGUESTS & vbCr & _
"Confirmation Number: " & Forms!frmREQUESTS.REQCON & vbCr & _
"Requested by: " & Forms!frmREQUESTS.LNAME & ", " & Forms frmREQUESTS.FNAME


"Eric Legault [MVP - Outlook]" wrote:

> What versions of Outlook?
> Are you setting Body or HTMLBody?
> Can you show your code please?
>
> --
> Eric Legault (Outlook MVP, MCDBA, old school WOSA MCSD, B.A.)
> Try Picture Attachments Wizard for Outlook:
> http://www.collaborativeinnovations.ca
> Blog: http://blogs.officezealot.com/legault/
>
>
> "DEI" wrote:
>
> > I am using VBA code in MS access to open an Outlook mail message and populate
> > the To, Subject, and message text (email body) fields. It works fine on my
> > workstation, but the message body comed up blank when another workstation
> > uses the database, runs the code, etc. The To and Subject fields populate,
> > but the message text is blank. No error message comes up, and the user can
> > type text and send the email fine.
> >
> > Is there a setting in Outlook that I need to change to allow the message
> > text to populate? Is it blocking an unsafe exporession by chance? Has
> > anyone had this problem before?
> >
> > Thanks,
> >
> > DEI

 
Reply With Quote
 
=?Utf-8?B?RXJpYyBMZWdhdWx0IFtNVlAgLSBPdXRsb29rXQ==
Guest
Posts: n/a
 
      8th Nov 2005
Outlook's security dialog will only apply if you set the last argument in
SendObject to True, otherwise the e-mail is only displayed and must be
manually sent.

The only thing I can guess at is that maybe that other PC does not have
access to that table?? Try building the body text into a String variable
first, and use Debug.Assert, watches or evaluation expressions to make sure
that there is valid text in that variable before calling SendObject. I don't
see this being an Outlook issue at this point.

--
Eric Legault (Outlook MVP, MCDBA, old school WOSA MCSD, B.A.)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"DEI" wrote:

> Thanks for the reply. I do not know what version of Outlook it is, but it
> might be older than 2003, which is on my machine, but I doubt it.
>
> I am using the SendObject Method in a module in MS Access. The code is
> below. I would be OK with using some automation code that opens the Outlook
> app, creates a message, etc., but I tried to use an example taken from
> Microsoft.com for Access 97 but could not get that to work. Maybe that is a
> better solution. I am trying to create a plain test message via the argument
> below.
>
> I am using Access 2003. Does it have something to do with the MS Outlook
> Security update. This is very frustrating.
>
> Thanks again.
>
> Dim em as String
> em = Forms!frmREQUESTS.EMAIL
>
> DoCmd.SendObject , , acFormatTXT, em, , , "Catering Request Confirmation #" &
> Forms!frmREQUESTS.REQCON, _
> "Nutrition Services has received your recent catering order for:" & vbCr &
> vbCr & _
> "Date: " & Forms!frmREQUESTS.EVENTDATE & vbCr & _
> "Time: " & Forms!frmREQUESTS.BEGX & vbCr & _
> "Location: " & Forms!frmREQUESTS.BLDGRM & vbCr & _
> "Number Attending: " & Forms!frmREQUESTS.NUMGUESTS & vbCr & _
> "Confirmation Number: " & Forms!frmREQUESTS.REQCON & vbCr & _
> "Requested by: " & Forms!frmREQUESTS.LNAME & ", " & Forms frmREQUESTS.FNAME
>
>
> "Eric Legault [MVP - Outlook]" wrote:
>
> > What versions of Outlook?
> > Are you setting Body or HTMLBody?
> > Can you show your code please?
> >
> > --
> > Eric Legault (Outlook MVP, MCDBA, old school WOSA MCSD, B.A.)
> > Try Picture Attachments Wizard for Outlook:
> > http://www.collaborativeinnovations.ca
> > Blog: http://blogs.officezealot.com/legault/
> >
> >
> > "DEI" wrote:
> >
> > > I am using VBA code in MS access to open an Outlook mail message and populate
> > > the To, Subject, and message text (email body) fields. It works fine on my
> > > workstation, but the message body comed up blank when another workstation
> > > uses the database, runs the code, etc. The To and Subject fields populate,
> > > but the message text is blank. No error message comes up, and the user can
> > > type text and send the email fine.
> > >
> > > Is there a setting in Outlook that I need to change to allow the message
> > > text to populate? Is it blocking an unsafe exporession by chance? Has
> > > anyone had this problem before?
> > >
> > > Thanks,
> > >
> > > DEI

 
Reply With Quote
 
=?Utf-8?B?REVJ?=
Guest
Posts: n/a
 
      9th Nov 2005
Thanks for clarifying re: Outlook's security dialog, but I think you meant to
say that it applies when the last argument is set to False; that sends the
message without opening it for editing (it is counterintuitive), but the
default is True.

I will try to work with it. When I first put the Access front-end on the
user's machine, I was prompted with messages about whether Access should
block unsafe expressions. The user had never used Access on their machine
before. I wonder if I need to reset that setting.

THanks.

DEI

"Eric Legault [MVP - Outlook]" wrote:

> Outlook's security dialog will only apply if you set the last argument in
> SendObject to True, otherwise the e-mail is only displayed and must be
> manually sent.
>
> The only thing I can guess at is that maybe that other PC does not have
> access to that table?? Try building the body text into a String variable
> first, and use Debug.Assert, watches or evaluation expressions to make sure
> that there is valid text in that variable before calling SendObject. I don't
> see this being an Outlook issue at this point.
>
> --
> Eric Legault (Outlook MVP, MCDBA, old school WOSA MCSD, B.A.)
> Try Picture Attachments Wizard for Outlook:
> http://www.collaborativeinnovations.ca
> Blog: http://blogs.officezealot.com/legault/
>
>
> "DEI" wrote:
>
> > Thanks for the reply. I do not know what version of Outlook it is, but it
> > might be older than 2003, which is on my machine, but I doubt it.
> >
> > I am using the SendObject Method in a module in MS Access. The code is
> > below. I would be OK with using some automation code that opens the Outlook
> > app, creates a message, etc., but I tried to use an example taken from
> > Microsoft.com for Access 97 but could not get that to work. Maybe that is a
> > better solution. I am trying to create a plain test message via the argument
> > below.
> >
> > I am using Access 2003. Does it have something to do with the MS Outlook
> > Security update. This is very frustrating.
> >
> > Thanks again.
> >
> > Dim em as String
> > em = Forms!frmREQUESTS.EMAIL
> >
> > DoCmd.SendObject , , acFormatTXT, em, , , "Catering Request Confirmation #" &
> > Forms!frmREQUESTS.REQCON, _
> > "Nutrition Services has received your recent catering order for:" & vbCr &
> > vbCr & _
> > "Date: " & Forms!frmREQUESTS.EVENTDATE & vbCr & _
> > "Time: " & Forms!frmREQUESTS.BEGX & vbCr & _
> > "Location: " & Forms!frmREQUESTS.BLDGRM & vbCr & _
> > "Number Attending: " & Forms!frmREQUESTS.NUMGUESTS & vbCr & _
> > "Confirmation Number: " & Forms!frmREQUESTS.REQCON & vbCr & _
> > "Requested by: " & Forms!frmREQUESTS.LNAME & ", " & Forms frmREQUESTS.FNAME
> >
> >
> > "Eric Legault [MVP - Outlook]" wrote:
> >
> > > What versions of Outlook?
> > > Are you setting Body or HTMLBody?
> > > Can you show your code please?
> > >
> > > --
> > > Eric Legault (Outlook MVP, MCDBA, old school WOSA MCSD, B.A.)
> > > Try Picture Attachments Wizard for Outlook:
> > > http://www.collaborativeinnovations.ca
> > > Blog: http://blogs.officezealot.com/legault/
> > >
> > >
> > > "DEI" wrote:
> > >
> > > > I am using VBA code in MS access to open an Outlook mail message and populate
> > > > the To, Subject, and message text (email body) fields. It works fine on my
> > > > workstation, but the message body comed up blank when another workstation
> > > > uses the database, runs the code, etc. The To and Subject fields populate,
> > > > but the message text is blank. No error message comes up, and the user can
> > > > type text and send the email fine.
> > > >
> > > > Is there a setting in Outlook that I need to change to allow the message
> > > > text to populate? Is it blocking an unsafe exporession by chance? Has
> > > > anyone had this problem before?
> > > >
> > > > Thanks,
> > > >
> > > > DEI

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Warning message if one column contains any text and another column is blank Dileep Chandran Microsoft Excel Worksheet Functions 12 30th Oct 2006 08:50 PM
MessageBox coming up with blank message and blank buttons. =?Utf-8?B?TWlrZSBM?= Microsoft VB .NET 3 1st Jul 2005 12:16 AM
Message text is now blank??? David J. Zook Microsoft Outlook 0 24th Apr 2005 05:47 PM
How to identify (test) a blank or blank line in a text file? =?Utf-8?B?UGV0ZXI=?= Microsoft Access 1 5th Aug 2004 10:04 AM
Email message's text goes blank after clicking the send button. Andre Lemos Microsoft Outlook Discussion 0 3rd May 2004 06:51 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:46 PM.