Hi,
I want to add a button on form which the user can press and a blank email will be displayed for the user to add a couple of bits of info and then send it.
The Address and the subject are already filled out.
I've worked out how to open the mail from the button and populate the To: and Subject: fields with the code, but when it comes to the body I want to have say three Headers that the user can fill relevent info.
Here is my code so far:
As you can see "Company Name" is in the main body of the email, but I want to add some more data like, Name: Position: etc but on different lines, it's amazing how much you take the Enter button for a new line for granted!
Also, if the email is sent, it works fine, if the user cancels the email, Access freaks a bit, I'm sure I'm missing a bit of code here too.
Many thanks
I want to add a button on form which the user can press and a blank email will be displayed for the user to add a couple of bits of info and then send it.
The Address and the subject are already filled out.
I've worked out how to open the mail from the button and populate the To: and Subject: fields with the code, but when it comes to the body I want to have say three Headers that the user can fill relevent info.
Here is my code so far:
Code:
Private Sub Command14_Click()
DoCmd.SendObject _
, _
, _
, _
"[EMAIL="emailaddress@company.com"]emailaddress@company.com[/EMAIL]", _
, _
, _
"Email Subject Text", _
"Company Name:", _
True
End Sub
As you can see "Company Name" is in the main body of the email, but I want to add some more data like, Name: Position: etc but on different lines, it's amazing how much you take the Enter button for a new line for granted!
Also, if the email is sent, it works fine, if the user cancels the email, Access freaks a bit, I'm sure I'm missing a bit of code here too.
Many thanks