Hi,
I have Access calling up an new outlook message. However I need to know whether the user decides to send this message or not. I know mailItem has a .sent property but I cannot get this to work. Here's a little simplified excerpt from my code.
The thoery seems to be right and the msgbox's do not appear until the e-mail has been sent/cancelled so it's not jumping the gun so to speak. oEmail.Sent just seems to return false all the time whether I send the message or not.
What am I doing wrong ?
Liam
I have Access calling up an new outlook message. However I need to know whether the user decides to send this message or not. I know mailItem has a .sent property but I cannot get this to work. Here's a little simplified excerpt from my code.
Code:
oEmail.Subject = "Some subject"
oEmail.Body = "Content..."
oEmail.Display
if oEmail.Sent Then
MsgBox "Message Sent Successfully"
Else
MsgBox "Message Not Sent"
End If
The thoery seems to be right and the msgbox's do not appear until the e-mail has been sent/cancelled so it's not jumping the gun so to speak. oEmail.Sent just seems to return false all the time whether I send the message or not.
What am I doing wrong ?
Liam