I am trying to run the given below code and I am not able to proceed further as it is giving me some error. It had run for a couple of times, but stoped working all of a sudden.
Given below is the code.
Private Sub cmdViewEmail_Click()
Dim olFolder As Outlook.MAPIFolder
Dim olConversationIndex As String
olConversationIndex = [Form_qryEmails&Comments subform].Conservation_Inde
Set olFolder = GetOlFolder("\\Mailbox - Operations Collections\Inbox")
Set Test = olFolder.Session.GetItemFr
Given below is the error I get when I try to run the above code.
I also did some further testing and it seems to work for certain emails and does work for certain emails. Please note the folder has only emails, no calander or task etc..