Modifying Due Date in Outlook Task

  • Thread starter bg17067 via AccessMonster.com
  • Start date
B

bg17067 via AccessMonster.com

Hello all,

I have the following code that works great. Now my users want the due date
set to be 1 day from the OrderDate. I have looked for the format for the
coding and have been unsuccessful. Any assistance would be greatly
appreciated.

Thanks,
Brian

----------------------------------------
Private Sub CreateTask_Click()
Dim myMail As New Outlook.Application
Dim myTask As Outlook.TaskItem

Set myTask = myMail.CreateItem(olTaskItem)
myTask.Subject = Me.OrderNumber
myTask.DueDate = Me.OrderDate
myTask.Body = " "
myTask.Display

Set myMail = Nothing
Set myTask = Nothing
End Sub
 
B

bg17067 via AccessMonster.com

Never mind all...I figured it out with the lucky guess of " + 1".
 

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

Top