I'm trying to email a form with the on click procedure of a button. I have built the "EmailDatabaseObject" macro within the on-click procedure, but am having difficulty with automating the TO field in the macro. The form is basically a punch list, and upon clicking this button I want the form to be emailed to the appropriate manager (i have labeled as "Assigned To" field on the form.) I have another field on the form that isn't visible that is the email address corresponding to the manager in the assigned to field. When I type =[Email] in the To field of the macro (Email is the name of the text box containing the email address) this is what i get in the to field when Outlook pops up: name@company.com#mailto:name@company.comHow can i get rid of the #mailto:name@company.com# portion of this?
It's the correct email address that is populating, but the #mailto:# portion is preventing Outlook from sending.
Please help!