jm.almeras laid this down on his screen :
> Dear Outlook and VB experts,
>
> In an Access database I have code which searches messages in the Outlook
> Inbox folder. This code has worked fine for some time, and some time ago it
> started not working any more. It produces a 429 error on the instruction n°2
> here below :
>
> Set objOutlook = CreateObject("Outlook.Application")
> Set objSession = CreateObject("MAPI.Session")
Try using this sytax:
Dim Mail As Outlook.Folder
Set Mail = Session.GetDefaultFolder(olFolderSentMail)
Dim MailReceived As Outlook.Folder
Set MailReceived = Session.Folders("
cmp...@gmail.com").Folders("Inbox")
Dim Kontact As Outlook.Items
Set Kontact = Session.GetDefaultFolder(olFolderContacts).Items
Dim Kalendar As Outlook.Items
Set Kalendar = Session.GetDefaultFolder(olFolderCalendar).Items
etc.
Bruno