Welcome to SPN

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

Sign Up Now!
  1.   Become a Supporter    ::   Make a Contribution   
    Target (Recurring Monthly): $200 :: Achieved: $98

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
    >
    >
     
Since you're here... we have a small favor to ask...

More people are visiting & reading SPN than ever but far fewer are paying to sustain it. Advertising revenues across the online media have fallen fast. So you can see why we need to ask for your help. Donating to SPN's is vote for free speech, for diversity of opinions, for the right of the people to stand up to religious bigotry. Without any affiliation to any organization, this constant struggle takes a lot of hard work to sustain as we entirely depend on the contributions of our esteemed writers/readers. We do it because we believe our perspective matters – because it might well be your perspective, too... Fund our efforts and together we can keep the world informed about the real Sikh Sikhi Sikhism. If everyone who writes or reads our content, who likes it, helps us to pay for it, our future would be much more secure. Every Contribution Matters, Contribute Generously!

    Become a Supporter      ::     Make a Contribution     



Share This Page