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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Send Object problems

Status
Not open for further replies.

matpj

Technical User
Mar 28, 2001
687
GB
I have a send object code that enables me to include the fields in a form as the body of the mail.
I am having problems making it work properly:

The line reads as follows:

DoCmd.SendObject acSendNoObject, "", acFormatTXT, emailAddress, , , "Subject", formInfo, False

Even though I have 'False' at the end, it still brings up an edit window for the email.
I am also having problems getting abything to appear in the 'To:' field.
I have set emailAddress as a string, but if I enter a name, this does not appear in the To: section, it is just left blank. Also if I take the 'emailAddress' out of the sendObject line, and replace it with "matpj@another.com", this doesn't work, it comes up with an error saying: The SendObject action was cancelled.

what is wrong with this?!!

Matt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top