Display Outlook from Access

G

Guest

Hi All

I am using the code fragment below (courtesy of Tom Wickerath) to send an
e-mail via Outlook 2003 (from Access 2000). The problem is that, unlike the
DoCmd.SendObject function, Outlook does not display on screen. Is there any
way to display Outlook so that the user can see the e-mail and add any
comments. With Word the command :-

myObject.Visible = True

works but this line errors out in Outlook.

'---------------------
Dim myObject As Object, myItem As Object
Dim vCount As Long
Dim vArray() As String

On Error GoTo ProcError

Set myObject = CreateObject("Outlook.Application")
Set myItem = myObject.CreateItem(0)

.... etc
'-------------------------
 
R

Ron2006

Near the end of the code that is not there,

In place of the .send

replace it with .display
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top