Question : Access VB Not Working Anymore

Most unusual.

I have the following piece of code in a form that is to create an email and populate certain areas of the email, particularly the subject and message body. This was working fine with Office XP. Now I am running Office 2003 and no what happens is that an error message on which I click OK and the message is created, but missing the message body info.

I am running Office 2003 on XP Pro SP2 system.

The code is below:

Dim objol As New Outlook.Application, rtfmail As MailItem
Set rtfmail = objol.CreateItem(olMailItem)
With rtfmail
.FormDescription.UseWordMail = True
'.GetInspector.windowstate = olmaximized
.Subject = Task Request " & [Forms]![frmRequest]![TASKNO]
.Body = "I just created a Request " & [Forms]![frmRequest]![TASKNO] & ". Please take a look at it and if you agree, please submit. Thank You."
.Save
.Display
End With
Set objol = Nothing
' MsgBox "Your Message Has been Sent", vbOKOnly, "Message Status"
DoCmd.Close

The error message is as follows:

Microsoft Word is set to be your email editor. However, Word is unavailable, not installed, or is not the same version as Outlook. The Outlook email editor will be use instead.

I've seen this before and I did not use MS's recommendation because I came across a quick fix here. However, now I cannot seem to locate this fix nor do I remember how I resolved it last time.

Any takers?

Answer : Access VB Not Working Anymore

Upgrade Outlook to 2003
or
goto Outlook, tools, options, mail format.  Uncheck use Microsoft Office Word to edit email messages
Random Solutions  
 
programming4us programming4us