Recent content by accessDatabase

  1. A

    Is there an ID field you can use to pair a reply to the sent email?

    Hi Diane, I couldn't find 'Thread-Index' as an option for an olMailItem. When I tried Conversation Index there wasn't the similarity that you showed in your example. How do email clients know how to put together emails into conversation threads? Is that what I'm missing?
  2. A

    Is there an ID field you can use to pair a reply to the sent email?

    Hi Diane, thanks for your reply. I tried the Entry ID but that didn't match between the sent and reply emails unfortunately. I tried your custom field idea but have come up against an error. I have two buttons in the Outlook ribbon: the first one sends the email with this code: I received the...
  3. A

    Is there an ID field you can use to pair a reply to the sent email?

    Hi all, Is there a field within an Outlook mailItem which allows you to store an ID number e.g. 123456 which you can read from their reply email? I am trying to insert a contactId somewhere in the email which I can read when the person replies and use to make updates to an Access database. I...
  4. A

    Capturing Send Variables without using Application_ItemSend in ThisOutlookSession

    Great, thanks for that, that's got it working now. All the best!
  5. A

    Capturing Send Variables without using Application_ItemSend in ThisOutlookSession

    Hi Diane, yes I've got an IF block in there, unfortunately the Private Sub olSentItems_ItemAdd(ByVal Item As Object) isn't being fired after I've sent an email. Perhaps I've got it set up wrong?
  6. A

    Capturing Send Variables without using Application_ItemSend in ThisOutlookSession

    Hi, I've put this code into thisOutlookSession and assigned 'Say Yes' to a custom button on the ribbon. I click that button, then click the Send button, but it's not firing the code. Any suggestions? Option Explicit Dim SetFlag Private WithEvents olSentItems As Items Private Sub...
  7. A

    Capturing Send Variables without using Application_ItemSend in ThisOutlookSession

    Hi Diane, thanks for your reply. When I paste this code into a module I get a compile error on WithEvents saying Only Valid in Object Module. Which parts go in which type of module? Option Explicit Dim SetFlag Private WithEvents olSentItems As Items Private Sub Application_Startup() Dim...
  8. A

    Capturing Send Variables without using Application_ItemSend in ThisOutlookSession

    Hello, I want to place a custom button in the send window's ribbon which allows me to capture the sender, recipient, subject, body and date/time sent and pass these through to an Access database then send the email as normal. I have found out how to get these variables using the...
Top