franksirvent
Programmer
Hi there
I get this error while running the following code from Access:
"User type not defined" (more or less, as it has been translated from Spanish)
The code I have copied from one of the examples in this great Forum...Dim ns As NameSpace is the line giving me the problem...any ideas what's wrong ???
Dim ns As NameSpace
Dim Inbox As MAPIFolder
Dim Item As Object
Dim Atmt As Attachment
Dim FileName As String
Dim i As Integer
Dim SubFolder As MAPIFolder
Set myOlApp = CreateObject("Outlook.Application")
Set ns = GetNamespace("MAPI")
Set Inbox = ns.GetDefaultFolder(olFolderInbox)
Set SubFolder = Inbox.Folders("1 ZIP EXTRACTS")
I get this error while running the following code from Access:
"User type not defined" (more or less, as it has been translated from Spanish)
The code I have copied from one of the examples in this great Forum...Dim ns As NameSpace is the line giving me the problem...any ideas what's wrong ???
Dim ns As NameSpace
Dim Inbox As MAPIFolder
Dim Item As Object
Dim Atmt As Attachment
Dim FileName As String
Dim i As Integer
Dim SubFolder As MAPIFolder
Set myOlApp = CreateObject("Outlook.Application")
Set ns = GetNamespace("MAPI")
Set Inbox = ns.GetDefaultFolder(olFolderInbox)
Set SubFolder = Inbox.Folders("1 ZIP EXTRACTS")