I've got a small application monitoring the Inbox of my primary Outlook account which works a treat. However, I have a second account and I want the same application to check for unread items in that account's inbox.
My current code includes the following for the default account:
oNS = PharmarOutlook.GetNamespace("MAPI")
oInbox = _
oItems = oInbox.Items
oItems = oItems.Restrict("[Unread]=true")
Is it just a question of tweaking this to access the second account?
Many thanks for any assistance given.