Looping through opened tasks in Outlook 2000

  • Thread starter Thread starter B.
  • Start date Start date
B

B.

I want to loop through opened Outlook tasks from Access 2000.
Task is not necessarily saved in task folder so I can't loop through folder
items.
I have procedure that create task items every 5 minutes and I don't want to
create task more than once in a case it is still opened and not completed
(since the last task creation).
If it is opened I want to display it on the screen.

I found this
http://www.experts-exchange.com/Applications/MS_Office/Outlook/Q_20702885.html
but for inspector declaration it gives me compile error: user-defined type
not defined

I would appreciate any hint.

Tnx in advance.

B.
 
B:

The reason that you get the user-defined-type not defined error is that the
Inspector object type is defined in the Outlook object model and that object
hasn't been referenced by your database. From your open module, go to
tools -> references and scroll to the Micorsoft Outlook 9 Object Library and
reference it by checking the box.

Then you'll need to loop through all the folders and items contained in
those folders to look for items of a type of olTask (if your task items
aren't all in one folder; you'll shorten your code and looping if you at
least make all the tasks append to folders below the Tasks folder.)

HTH
 
Is there a way to loop through items that are not saved in any folder.
If there is some method to get all opened items in Outlook and then to loop
through them?

B.
 
Back
Top