Unanswered: Use textbox contents with SendObject command
I am creating a form to send a basic email.
I have already been able to make one that works with the SendObject command and uses an inputbox for the body text.
However, i want to make one that will take the information from a text box and insert it into the body of the email so i can make it easier to write content.
This is what i have
EmailBody is the name of the text box (in red). I am unsure on how to refer to it in the SendObject vba. I have tried me.emailbody, textbox.emailbody and nothing seems to work.
Private Sub EmailButton_Click()
Dim emailaddress As String
emailaddress = "Emailme@emailaddress.com"
Docmd.SendObject , , , emailaddress, , , "Email Subject", EmailBody, True
Anyone have any ideas?
You can use statistics to prove anything - 78% of people know that!