Welcome to Lockergnome.com!
HomeHome FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

Getting tasks from Access database

 
   Home -> Office -> Interoperability RSS
Next:  Interoperability: Outlook 2003 error message about an old copy of the .OST f..  
Author Message
John Wright

External


Since: Jun 25, 2007
Posts: 3



(Msg. 1) Posted: Mon Jun 25, 2007 9:23 am
Post subject: Getting tasks from Access database
Archived from groups: microsoft>public>outlook>interop (more info?)

I want to import a table from access into outlook's task folder. I have a
sales group of people that need to retrieve items from this database and add
it to their tasks. I would like this to be automated to kick off every two
hours. Can this be done? Does anyone have any code as an example for
this? I am an experienced VB programmer (.net and classic) but have done
very little programming in Outlook itself. The program needs to be
contained within Outlook. Any code, or examples would be great.

John Wright
Back to top
Login to vote
amitbhandari

External


Since: Jun 27, 2007
Posts: 3



(Msg. 2) Posted: Sat Jun 30, 2007 12:24 pm
Post subject: Re: Getting tasks from Access database [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

John,
Yes, of course, you can do this rather I'll say it's a childs' play to do
all this.
However, if you say that you want to create To-do list out of that then I'll
add
its more trickier since the To-do list folder is virtual one and you need to
access
the Store to add items to To-do list folder.

See, it is independent of thing whether you want this piece of work done as
a
standalone application or Add-in from Outlook, if you are using OOM. I could
have
given you the code but that will not suffice your needs as you should write
this piece
of code according to your needs. All I can help is to provide you some
insight on
using OOM.

Before, you start, have a look at OOM structure at MSDN. Now, include the
COM library
reference in your project to Microsoft Outlook Object Library. The steps
that you need
to follow are:
1) Create an object of ApplicationClass
2) Open your access database file
3) Get a reference to the Tasks folder using MapiFolder mf = (MAPIFolder)
app.GetDefaultFolder(olFolderType.olFolderTasks)
4) For each record in your access file, use app.CreateItem() function
5) Typecast to TaskItem object and set the appropriate properties after
reading the
columns of database
6) Call Save method
7) Viola!! you are done.

That's all with it. Now, iterate steps 4 through 6 for all the records in
your access file.

--
Regards,
Amit Bhandari
http://amitbhandari.co.nr

"John Wright" <riley_wrightx DeleteThis @hotmail.com> wrote in message
news:#tFYazztHHA.488@TK2MSFTNGP04.phx.gbl...
>I want to import a table from access into outlook's task folder. I have a
>sales group of people that need to retrieve items from this database and
>add it to their tasks. I would like this to be automated to kick off every
>two hours. Can this be done? Does anyone have any code as an example for
>this? I am an experienced VB programmer (.net and classic) but have done
>very little programming in Outlook itself. The program needs to be
>contained within Outlook. Any code, or examples would be great.
>
> John Wright
>
Back to top
Login to vote
Display posts from previous:   
       Home -> Office -> Interoperability All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Categories:
 General
 Microsoft Windows XP
 Microsoft Windows Vista
 Microsoft Windows (other)
  Microsoft Office
 Microsoft Office (other)
 Computer Security
 Linux
 Movies


[ Contact us | Terms of Service/Privacy Policy ]