G
Gina Whipp
Hello All,
The below errors out (see arrow). Please tell me what I am doing wrong...
***Declarations***
Public olTaskItem As Object
Public OutlookTask As Object
***In the InitializeOutlook() section
Set OutlookTask = golApp.CreateItem(olTaskItem)
***Function Start***
Function fncAddOutlookTask(frm As Form)
' Set global Application and NameSpace
' object variables, if necessary.
If golApp Is Nothing Then
If InitializeOutlook = False Then
MsgBox "Unable to initialize Microsoft Outlook!"
End If
End If
Dim OutlookTask As TaskItem <---- Undefined
With OutlookTask
.Subject = frm!txtSubject
.Body = frm!txtNotes
.ReminderSet = True
'Remind 2 minutes from now.
.ReminderTime = DateAdd("n", 2, Now)
'Due 5 minutes from now.
.DueDate = DateAdd("n", 5, Now)
.ReminderPlaySound = True
'Modify path.
.ReminderSoundFile = "C:\WINNT\Media\Ding.wav"
.Save
End With
End Function
***Function End***
Thanks for any and all help...
Gina Whipp
"I feel I have been denied critical, need to know, information!" - Tremors
II
The below errors out (see arrow). Please tell me what I am doing wrong...
***Declarations***
Public olTaskItem As Object
Public OutlookTask As Object
***In the InitializeOutlook() section
Set OutlookTask = golApp.CreateItem(olTaskItem)
***Function Start***
Function fncAddOutlookTask(frm As Form)
' Set global Application and NameSpace
' object variables, if necessary.
If golApp Is Nothing Then
If InitializeOutlook = False Then
MsgBox "Unable to initialize Microsoft Outlook!"
End If
End If
Dim OutlookTask As TaskItem <---- Undefined
With OutlookTask
.Subject = frm!txtSubject
.Body = frm!txtNotes
.ReminderSet = True
'Remind 2 minutes from now.
.ReminderTime = DateAdd("n", 2, Now)
'Due 5 minutes from now.
.DueDate = DateAdd("n", 5, Now)
.ReminderPlaySound = True
'Modify path.
.ReminderSoundFile = "C:\WINNT\Media\Ding.wav"
.Save
End With
End Function
***Function End***
Thanks for any and all help...
Gina Whipp
"I feel I have been denied critical, need to know, information!" - Tremors
II