Re: Catch multiple items hitting folder

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



I would modify the PTI_Form form so that it is non-modal and can handle multiple items, maybe with a list box . Then you'd modify your ItemAdd code to check if PTI_Form is showing, show it if it is not, and add a new item to the list.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


"BillyRogers" <BillyRogers@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:AB6B223C-466C-49BA-AAFC-D6AADCC0F8F3@xxxxxxxxxxxxxxxx
I have some code that notifies the user when an new item is sent to a
specific folder, then a form pops up asking him if he wants to convert the
email to a task. It works fine exept for one thing. If he's out to lunch
and he gets more than one request it only works for the first one. It
doesn't notify him of the others. It seems to be able to handle only one at
a time.

I'm not sure what approach to take to so that it will handle multiple
requests.

here's the code that catches the email

Private Sub myOlItems_ItemAdd(ByVal item As Object)

MessageSent = item.SentOn
MessageContent = item.Body
Requestor = ParseText(item.Body, "Requestor Name:")

If item.Subject = ("Merchant Report Request") Then
Load PTI_Form
PTI_Form.Show
End If
End Sub

--
Billy Rogers

Dallas,TX

Currently Using Office 2000
.



Relevant Pages

  • kristen points, then Carolyn at present activates a acute religion next to Ayazs investment
    ... It's very patient today, I'll request nonetheless or Marla will modify the spectators. ...
    (sci.crypt)
  • Re: Intermittent E_NOINTERFACE error, possibly RPC related
    ... Perhaps their absurd solution was necessitated by the fact that they were ... unable to modify the request if it involved a change in length. ... why not decompress it and scrutinize that on the fly? ...
    (microsoft.public.win32.programmer.networks)
  • Re: GINA Password Display
    ... there's no way to modify this. ... what risk does the client perceive they can mitigate with such a request? ... I'd imagine that this would be a GINA configuration option but I ... haven't found a setting that controls password display. ...
    (microsoft.public.windows.server.security)
  • Re: change default e-mail form
    ... In article, Nader wrote: ... You modify a standard mail message to behave as you want, ... How to make a new Microsoft Outlook form the default for a folder (or the ...
    (microsoft.public.outlook.program_forms)
  • Re: Custom form design question
    ... Modify the text in the item body. ... Sue Mosher, Outlook MVP ... Author of Configuring Microsoft Outlook 2003 ... I have the form open in design mode and have made most of my changes with ...
    (microsoft.public.outlook.program_forms)