S
Sunflower
Not sure if this is the right group to post to....
I have the following code behind a button on a form:
-----------------------------------
Private Sub cmdSend_Click()
Dim NowDate As Date
Dim DateEnd As Date
Dim DateDif As Long
Dim Task As Object
Dim ToContact As Object
Set Task = Outlook.CreateItem(olTaskItem)
NowDate = Now()
DateEnd = DateDue.Value
If DateAdd("d", -1, DateEnd) >= 1 Then
DateEnd = DateAdd("d", -1, DateEnd)
Else
End If
Task.Subject = "WO#" & Me.[WOID] & " - " & Me.[ProjectName].Value
Task.Body = Me.[Comment].Value
Task.Assign
Task.DueDate = DateEnd
Task.ReminderSet = True
Task.ReminderTime = DateAdd("ww", -1, DateEnd)
Task.Importance = (olImportanceHigh)
Task.Save
End Sub
---------------------------------------
I cant seem to get the REMINDER DATE to show up!
Not sure what I have missed!
Any and all help greatly appreciated
I have the following code behind a button on a form:
-----------------------------------
Private Sub cmdSend_Click()
Dim NowDate As Date
Dim DateEnd As Date
Dim DateDif As Long
Dim Task As Object
Dim ToContact As Object
Set Task = Outlook.CreateItem(olTaskItem)
NowDate = Now()
DateEnd = DateDue.Value
If DateAdd("d", -1, DateEnd) >= 1 Then
DateEnd = DateAdd("d", -1, DateEnd)
Else
End If
Task.Subject = "WO#" & Me.[WOID] & " - " & Me.[ProjectName].Value
Task.Body = Me.[Comment].Value
Task.Assign
Task.DueDate = DateEnd
Task.ReminderSet = True
Task.ReminderTime = DateAdd("ww", -1, DateEnd)
Task.Importance = (olImportanceHigh)
Task.Save
End Sub
---------------------------------------
I cant seem to get the REMINDER DATE to show up!
Not sure what I have missed!
Any and all help greatly appreciated