I am new to VBA coding and was needed some help. Here is the situation. The company has converted a db from Access 2003 to 2010. All seems ok for now but there is a issue on system open. When the system is opened the main form opens but give the following error message.
Error # 2147221233- The attempted operation failed. An object could not be found has occurred during the System Screen Load
I was able to track down the issue and it has to do with the following code.
Set dbUniversalDB = Currentdb
Set olUnivOLApp = New Outlook.Application
Set olfUnivOLFolder3 = olUnivOLApp.GetNamespace("MAPI").Folders("Public Folders").Folders("All Public Folders").Folders("ogletreeabbott.com").Folders("P I Calendar")
It appears to me that the system is looking for a public folder in PI Colander and cant find it. I checked outlook and the folder is there.
MY question is what does
Set olfUnivOLFolder3 = olUnivOLApp.GetNamespace("MAPI").Folders("Public Folders").Folders("All Public Folders").Folders("ogletreeabbott.com").Folders("P I Calendar") do?
And could anyone theorize on why I am getting this error message?
Error # 2147221233- The attempted operation failed. An object could not be found has occurred during the System Screen Load
Thanks