What seems to be a problem?
>
>I want to be able to do 2 things:
>
>1. Connect to my Exchange server, log on to a selected mailbox, sort the inbox by most recent, then look through the inbox for emails from a selected address(s) and within the last week, then copy the contents of the selected email to a local table for processing.
>
>I have the following code that I've seen in another thread, but this is as far as I've got:
>
>loOutlook = creAteOBJECT("outlook.application")
>loNameSpace = loOutlook.APPLICATION.GetNamespace('MAPI')
>lpUserID="MailboxAccountName"
>lpPassword="MailboxAccountPassword"
>loNameSpace.Logon(lpUserID, lpPassword)
>
>Any ideas?
>
>Regards
--sb--