Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

doCmd.SendObject Email

Status
Not open for further replies.

janetb99

Programmer
Joined
May 8, 2003
Messages
15
Location
US
Background: WindowsXP, OfficeXP, GroupWise Simple Access form displaying single record, including email address. On button-click, want to go to visual basic and use doCmd.sendObject to display an email dialog box in GroupWise. I'm pretty sure things are set up okay on our network, cause the email/merge with Word seems to work fine.

Private Sub cmdSendEmail_Click()
Dim strToWhom As String
Dim strMsgBody As String
strToWhom = Me!
'have also tried forms!frmStudents!email and janetb@mtn.ncahec.org as a test
strMsgBody = "Important information about your community health rotation schedule."

DoCmd.SendObject acSendNoObject, , acFormatRTF, strToWhom, , , "Dear Student", strMsgBody, True
End Sub

On click, the error message reads "Windows Messaging! The form required to view this message cannot be displayed. Contact your administrator."

Sure would appreciate any assistance,
Thanks,
Janet
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top