Page 2 of 2 FirstFirst 12
Results 16 to 19 of 19
  1. #16
    Ruegen's Avatar
    Ruegen is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2013
    Location
    Australia
    Posts
    1,496

    Quote Originally Posted by ItsMe View Post
    Then it is not a problem that needs to be addressed. You are creating an object. As long as the sub routine can finish what it needs to do, there won't be a problem. If you had additional lines that said to have the object open and then come minimize and then change color and then maximize, etc - the user would have an opportunity to interrupt the code from executing.

    This is why the DoCmd Sendobject can fail to fully execute. It is committed to sending the object.
    Yes, Outlook doesn't seem to see closing the compose window as a bad thing so it closes the routine without a hitch - not great for me because I want to put an IF should the user do that at the time.

  2. #17
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows XP Access 2003
    Join Date
    Aug 2013
    Posts
    7,862
    I guess you could look into the Outlook sent folder and hunt down the email to make sure they sent it. I haven't written any code to try and do it but I know there are examples out there.

  3. #18
    Ruegen's Avatar
    Ruegen is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2013
    Location
    Australia
    Posts
    1,496
    Quote Originally Posted by ItsMe View Post
    I guess you could look into the Outlook sent folder and hunt down the email to make sure they sent it. I haven't written any code to try and do it but I know there are examples out there.
    It's something I could do I just fret about whether the user will do something that messes with the outcome.

  4. #19
    trevor40's Avatar
    trevor40 is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Feb 2014
    Location
    Australia
    Posts
    407
    I use this to display then send, what you ask is outside of access it's inside outlook, I've never needed to do this but you may try looking at the VBA Object browser, and select outlook from the list, you may find something here to help or point you in the right direction. i'm sure that you need to use outlook vba reference once the email is displayed, the same way you use .display .send and so on. Or you could try an outlook VBA forum, the code should be adaptable for access the same way you manipulate excel from access.

    Dim lst As Form
    Dim vItem As Variant
    Dim iLen As Integer
    Dim swhare
    Dim myOlApp As New Outlook.Application
    Dim myItem As Outlook.MailItem
    Set myOlApp = CreateObject("Outlook.Application")
    Set myItem = myOlApp.CreateItem(olmailItem)
    With myItem
    For Each vItem In Me.Employees1
    If Not IsNull(vItem) Then
    myItem.Attachments.Add lst.ItemData(vItem)
    End If
    Next
    Set lst = Nothing
    End With
    myItem.To = Forms![main menu]![Employees1]![E-Mail Address]
    myItem.Display

    1000 ways to skin a cat, allways looking for another one...
    Use MDB format for sample post. If your issue is fixed, mark the thread solved.
    Click on the star below if this has helped.

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 11
    Last Post: 05-20-2014, 11:32 AM
  2. Email and Outlook
    By Douglas Post in forum Programming
    Replies: 1
    Last Post: 02-13-2012, 02:57 PM
  3. Assigning Outlook task from shared Outlook mailbox
    By Remster in forum Programming
    Replies: 2
    Last Post: 11-16-2011, 04:38 AM
  4. Outlook
    By andysmith652 in forum Access
    Replies: 5
    Last Post: 10-01-2010, 06:31 AM
  5. Outlook
    By noidea in forum Access
    Replies: 0
    Last Post: 08-01-2009, 08:36 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums