integrating with outlook?

  • Thread starter Thread starter davidrossdegroot
  • Start date Start date
D

davidrossdegroot

Hi, I've made a database that tracks tasks and their due dates, etc.
I understand that you can integrate Access to work with Outlook... I
would like to have my boss be able to track the tasks in her task
manager part of Outlook, but still have the ability to get the reports
that I've created in Access... Any suggestions?

Thank you very much.

Regards,

David
 
Hi, I've made a database that tracks tasks and their due dates, etc.
I understand that you can integrate Access to work with Outlook... I
would like to have my boss be able to track the tasks in her task
manager part of Outlook, but still have the ability to get the reports
that I've created in Access... Any suggestions?

Thank you very much.

Regards,

David

Anybody?
 
Hi David,


does your boss just track the tasks or does he also edit them?

André
 
Are the volunteers here not addressing your pressing concern in a
timely manner? For shame! Their salaries will be docked and they'll
be knocked down a rung to the next lower pension band. ;-)

Whilst you await attention you might visit

www.mvps.org/access

and bone up on "netequette" viz these Access newsgroups (good behavior
for just about all newsgroups). Also compile and share that long list
of research you've already performed to solve your issues yourself so
that those selfsame volunteers don't waste *your* valuable time
covering ground you've already covered.

HTH
 
Are the volunteers here not addressing your pressing concern in a
timely manner? For shame! Their salaries will be docked and they'll
be knocked down a rung to the next lower pension band. ;-)

Whilst you await attention you might visit

www.mvps.org/access

and bone up on "netequette" viz these Access newsgroups (good behavior
for just about all newsgroups). Also compile and share that long list
of research you've already performed to solve your issues yourself so
that those selfsame volunteers don't waste *your* valuable time
covering ground you've already covered.

HTH
--
-Larry-
--







- Show quoted text -

Thanks Larry, I appreciate the concern, although I don't really
understand what you were talking about in terms of lowering their
pensions... I'll read up more on that website that you referenced.
Kind regards, David
 
Hi David,



does your boss just track the tasks or does he also edit them?

André

--http://www.access-entwicklerbuch.dehttp://www.access-im-unternehmen.de

He only tracks them... There should be no editing really. I think
that there is a way to do this, because he informed me that he had an
Access database linked to his tasks in Outlook previously, but that
database is now retired somewhere and I don't know where it is... He
would use the "milage" field in the "details" tab of the task to state
who the task came from and stuff like that...

Thank you, André.

D.
 
Hi David,

He only tracks them... There should be no editing really. I think
that there is a way to do this, because he informed me that he had an
Access database linked to his tasks in Outlook previously, but that
database is now retired somewhere and I don't know where it is... He
would use the "milage" field in the "details" tab of the task to state
who the task came from and stuff like that...

I just wrote some procedures to do just the same thing you want to do.

If you put the following code into a standard module and start
"AufgabenExportieren" (it's in German, so you have to translate some
function names and so on ...).

This will export all tasks saved in a table named "tblAufgaben" to
Outlook's standard task folder.

You might have to customize the table and field names in the code -
there are just a few sample properties of a task. You also have to add a
line to export your name/id to the milage field.

The procedure uses the billinginformation field to save the id (primary
key) of the task in your task table in the Outlook task. So it is able
to check whether the task is already there (and to be updated) or not -
in this case the procedure adds a new task.

Dim mOutlook As Outlook.Application
Dim mMAPINamespace As Outlook.NameSpace
Dim mTaskFolder As Outlook.Folder

Public Property Get GetOutlook() As Outlook.Application
If mOutlook Is Nothing Then
On Error Resume Next
Set mOutlook = CreateObject("Outlook.Application")
If Err.Number = 429 Then
MsgBox "Outlook konnte nicht gestartet werden."
Exit Property
End If
End If
Set GetOutlook = mOutlook
End Property

Public Property Get GetMAPINamespace() As Outlook.NameSpace
If mMAPINamespace Is Nothing Then
Set mMAPINamespace = GetOutlook.GetNamespace("MAPI")
End If
Set GetMAPINamespace = mMAPINamespace
End Property

Public Property Get GetTaskFolder() As Outlook.Folder
If mTaskFolder Is Nothing Then
Set mTaskFolder = GetMAPINamespace.GetDefaultFolder(olFolderTasks)
End If
Set GetTaskFolder = mTaskFolder
End Property

'--> start this sub to export tasts from a table to Outlook
Public Sub AufgabenExportieren()
Dim db As DAO.Database
Dim rst As DAO.Recordset
Dim objTaskItem As Outlook.TaskItem
Set db = CurrentDb
Set rst = db.OpenRecordset("tblAufgaben", dbOpenDynaset)
Do While Not rst.EOF
If Not AufgabeNachID(rst!ID, objTaskItem) = True Then
Set objTaskItem = GetTaskFolder.Items.Add
End If
With objTaskItem
.BillingInformation = rst!ID
.Subject = rst!Subject
.Body = rst!Body
.StartDate = rst!StartDate
.DueDate = rst!DueDate
.DateCompleted = rst!DateCompleted
.PercentComplete = rst!PercentComplete
.Importance = rst!Importance
.Save
End With
rst.MoveNext
Loop
End Sub

Public Function AufgabeNachID(lngID As Long, objAufgabe As
Outlook.TaskItem) As Boolean
Dim objTaskItem As Outlook.TaskItem
Set objTaskItem = GetTaskFolder.Items.Find("[BillingInformation] =
" & lngID)
If Not objTaskItem Is Nothing Then
Set objAufgabe = objTaskItem
AufgabeNachID = True
End If
End Function

Bye
André
 
Are the volunteers here not addressing your pressing concern in a
timely manner? For shame! Their salaries will be docked and they'll
be knocked down a rung to the next lower pension band. ;-)

Whilst you await attention you might visit

www.mvps.org/access

and bone up on "netequette" viz these Access newsgroups (good behavior
for just about all newsgroups). Also compile and share that long list
of research you've already performed to solve your issues yourself so
that those selfsame volunteers don't waste *your* valuable time
covering ground you've already covered.

HTH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top