R
Rog
Outlook 2003, Folder is created in myown mailbox.
Running in Access 2003 VBA environment. I get a Type
mismatch, but don't understand why?
Dim myOlapp As Outlook.Application
Dim myoMsg As Outlook.MailItem
Dim myOFolder As Outlook.MAPIFolder
Dim myAttachment As Attachment
Dim sTemp As String
Dim sSubject As String
Dim sEmailAddress As String
Dim iFileNum As Long
Dim sFile As String
Dim sFileTemp As String
Dim sSql As String
Dim i As Long
Set myOlapp = New Outlook.Application
Set myOFolder = myOlapp.Session.PickFolder
For Each myoMsg In myOFolder.Items -- Error happens
here on first message.
ssubject = myomsg.subject
next
Funny thing is if I go to Command Window I can do the
following while stopped on this line...
myOfolder.items(i).Subject and get a value back
Running in Access 2003 VBA environment. I get a Type
mismatch, but don't understand why?
Dim myOlapp As Outlook.Application
Dim myoMsg As Outlook.MailItem
Dim myOFolder As Outlook.MAPIFolder
Dim myAttachment As Attachment
Dim sTemp As String
Dim sSubject As String
Dim sEmailAddress As String
Dim iFileNum As Long
Dim sFile As String
Dim sFileTemp As String
Dim sSql As String
Dim i As Long
Set myOlapp = New Outlook.Application
Set myOFolder = myOlapp.Session.PickFolder
For Each myoMsg In myOFolder.Items -- Error happens
here on first message.
ssubject = myomsg.subject
next
Funny thing is if I go to Command Window I can do the
following while stopped on this line...
myOfolder.items(i).Subject and get a value back