Every since mt database was created several years ago I have used the following code to connect to outlook and it has worked fine. Nowadays however it fails with the run-time error show in the attached sceenshot.
I have also triedCode:Dim oApp As Outlook.Application Set oApp = CreateObject("Outlook.Application")
Code:Dim oApp As Object Set oApp = CreateObject("Outlook.Application")
I'm completely stumped so any help would be appreciated.