Hi,
I am trying to modify the follow codes to add a task to outlook from Access database. Below is the codes that I found:
Function AddOutLookTask()
Dim appOutLook As Outlook.Application
Dim taskOutLook As Outlook.TaskItem
Set appOutLook = CreateObject(“Outlook.Application”)
Set taskOutLook = appOutLook.CreateItem(olTaskItem)
With taskOutLook
.Subject = “This is the subject of my task”
.Body = “This is the body of my task.”
.ReminderSet = True
.ReminderTime = DateAdd(“n”, 2, Now) ‘ Set to remind us 2
‘ minutes from now.
.DueDate = DateAdd(“n”, 5, Now) ‘ Set the due date to
‘ 5 minutes from now.
.ReminderPlaySound = True
‘add the path to a .wav file on your computer.
.ReminderSoundFile = “C:Win95mediading.wav”
.Save
End With
End Function
How can I modify the codes above to have the Subject & Body auto populate with the fields on my database form?
Thanks in advance.
Regards