how do I email from a query

  • Thread starter Thread starter Guest
  • Start date Start date
Create code using the DoCmd.SendObject method

You can tie this to a button if you want and the user can click the button
to create an email.

Assuming you don't want to send any particular object (just open a blank
email) your code would look something like:


Private Sub Command45_Click()
DoCmd.SendObject acSendNoObject, , , [EmailAddressFieldName]
End Sub



Obviously you can make this as comples as you want. You can include some
erro checking, have it attach a report, etc.
 
Thanks Rick, I'll give it a shot.

Rick B said:
Create code using the DoCmd.SendObject method

You can tie this to a button if you want and the user can click the button
to create an email.

Assuming you don't want to send any particular object (just open a blank
email) your code would look something like:


Private Sub Command45_Click()
DoCmd.SendObject acSendNoObject, , , [EmailAddressFieldName]
End Sub



Obviously you can make this as comples as you want. You can include some
erro checking, have it attach a report, etc.

--
Rick B



Mtnman said:
Thanks Rick, how???
 
Back
Top