Automation Error - Library Not Registered
Please Help!!!! When I run the code below in a Windows 7 environment I get an error: Automation Error - Library Not Registered. This code works great in Windows XP with Access 2003. I think this has something to do with a missing DLL file but I am not sure. Does anybody know how to resolve this problem?
Set olApp = CreateObject("Outlook.Application")
Set olNS = olApp.GetNamespace("MAPI")
Set olfolder = olNS.GetDefaultFolder(olFolderInbox)
Set olMailItem = olfolder.Items.Add("IPM.Note")
Thank you for any help you can give.