I've found this code on-line and tried to adapt it to my Access Database.
I want to Create an Outlook Task. But for some reason this code is creating an EMAIL! I can't figure out why. Any clue?
Private Sub Command202_Click()
Dim OlApp As Object
Dim OlTask As Object
Set OlApp = CreateObject("Outlook.Application")
Set OlTask = OlApp.CreateItem(olTaskItem)
With OlTask
.Subject = Me.Account & " " & Me.WBPN & " " & Me.WBNextAction
.body = Me.WBStatus
.Display
End With
End Sub
Thank you!
I want to Create an Outlook Task. But for some reason this code is creating an EMAIL! I can't figure out why. Any clue?
Private Sub Command202_Click()
Dim OlApp As Object
Dim OlTask As Object
Set OlApp = CreateObject("Outlook.Application")
Set OlTask = OlApp.CreateItem(olTaskItem)
With OlTask
.Subject = Me.Account & " " & Me.WBPN & " " & Me.WBNextAction
.body = Me.WBStatus
.Display
End With
End Sub
Thank you!