Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!

Display Outlook from Access

Discussion in 'Information Technology' started by Peter Hibbs, Jul 28, 2006.

  1. Peter Hibbs

    Peter Hibbs
    Expand Collapse
    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
    '-------------------------
    --
    Peter Hibbs
     
  2. Loading...

    Similar Threads Forum Date
    Heritage Sikh Artwork On Display At Texas University History of Sikhism Mar 6, 2015
    UK Sikh Turbans on display at Bradford exhibition Breaking News Mar 1, 2014
    History Rare photographs’ display: Sikh community and culture presented in vibrant colour Punjab, Punjabi, Punjabiyat Dec 8, 2013
    Events Manuscripts on display at National Museum of Pakistan. History of Sikhism Mar 3, 2013
    Turban Display Uncovers Sikh History Sikh Youth Jun 7, 2011

  3. Ron2006

    Ron2006
    Expand Collapse
    Guest

    Near the end of the code that is not there,

    In place of the .send

    replace it with .display
     
  4. Peter Hibbs

    Peter Hibbs
    Expand Collapse
    Guest

    Yep, that works a treat, thanks Ron.
    --
    Peter Hibbs


    "Ron2006" wrote:

    > Near the end of the code that is not there,
    >
    > In place of the .send
    >
    > replace it with .display
    >
    >
     

Share This Page