Results 1 to 6 of 6
  1. #1
    DMT Dave is offline VIP
    Windows 10 Access 2016
    Join Date
    May 2018
    Posts
    1,191

    Searching Sent Items

    Hi Guy's we have a booking form that comes through an outlook inbox, sometimes we may need to see what was actually sent, we are not saving the sent mails to an office database whereas we do save on the laptop so we can work remotely.

    Can i pull a string from the booking form ie:

    Title:
    Forename:


    Surname:
    Postcode: abcdef (Inbox mail body)
    Etc:
    Etc:

    Refresh a list that has conversations that would correspond with that postcode in (Sent Items)

    ??

    Thank you

  2. #2
    DMT Dave is offline VIP
    Windows 10 Access 2016
    Join Date
    May 2018
    Posts
    1,191
    Hi Guys, this opens up the sent items folder, how can i add a criteria in sent items to a specific email address so the sent items displays all emails for that email address ?

    Code:
    Dim olApp as Object, olNS as Object, olFldr as Object
    Set olApp = CreateObject("Outlook.Application")
    Set olNs = olApp.GetNamespace("MAPI")
    Set olFldr = olNs.Folders("Ouremail address.com").Folders("Sent Items")
        With olFldr
        .Display
        End With

  3. #3
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,776
    Don't know, but sometimes with these questions I do a little Googling just in case I come across a need in the future - not that I expect I'll ever really use it. It seems that you need to filter on a field (column), which in your case would likely be recipient or sender?

    Look most of the way down here for this paragraph

    This Visual Basic for Applications (VBA) example uses the Restrict method to get all Inbox items of Business category and moves them to the Business folder. To run this example, create or make sure a subfolder called 'Business' exists under Inbox.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  4. #4
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,903

  5. #5
    DMT Dave is offline VIP
    Windows 10 Access 2016
    Join Date
    May 2018
    Posts
    1,191
    Thank you guy's will have a study and see where i can get to

  6. #6
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,776
    @Welshgasman, BTW, that bold stuff was just copy/pasting. I've not taken up that habit of bolding every other word!
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Multiple Items Form grouped items
    By Tuckejam in forum Forms
    Replies: 2
    Last Post: 04-29-2020, 10:00 AM
  2. Replies: 2
    Last Post: 02-13-2018, 07:06 PM
  3. Searching
    By Cider in forum Forms
    Replies: 12
    Last Post: 03-30-2017, 08:12 AM
  4. Replies: 2
    Last Post: 05-24-2016, 08:01 AM
  5. Items With Which items Most Commonly
    By vansicklej in forum Access
    Replies: 3
    Last Post: 08-10-2011, 11:05 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