Im trying to send an email from VB...
I have tried both acFormatTXT and acFormatRTF. I've also tried a few others too but didnt expect them to work anyway, for instance acFormatXLS.
Every time, I get the error message 'Microsoft Access cant open the mail session.'
It is not because the txtEmail field is blank, because other code makes sure the email button is only visible if an email address is present.
Running Access 2000, Vista
eek
and Windows Mail
Thanks
Code:
Private Sub lblEmail_Click()
DoCmd.SendObject acSendNoObject, , acFormatRTF, txtEmail, , , "YourSubject", _
"YourMessage", True
End Sub
I have tried both acFormatTXT and acFormatRTF. I've also tried a few others too but didnt expect them to work anyway, for instance acFormatXLS.
Every time, I get the error message 'Microsoft Access cant open the mail session.'
It is not because the txtEmail field is blank, because other code makes sure the email button is only visible if an email address is present.
Running Access 2000, Vista


Thanks