quite frustrated MAPIMessages1.MsgCount returns 0 always
Visual Basic
1
Posts
1
Posters
0
Views
1
Watching
-
Hi, I'm using MAPISession and MAPIMessage components to access MS Outlook emails but the MAPIMessages1.MsgCount always returns 0 even though I've got 100 read emails. I've got Outlook 2002. The code I have is as follows: ... MAPISession1.Username = "Outlook" MAPIMessage1.DownloadMail = True MAPISession1.SignOn MAPIMessages1.SessionID = MAPISession1.SessionID MAPIMessages1.Fetch iNumOfMsgs = MAPIMEssages1.MsgCount 'iNumOfMsgs declared as a local var ... iNumOfMsgs returns 0 when there are 100 read emails Any help with this is very much appreciated