I want to know if I can get an email form button on my access form.
I have an access form and sometimes I would need to email via outlook a particular form. I want a button for that.
(oops, i said SendTo, but its actually SendObject)
place button on form
in the event property, ON CLICK event, click the EXPRESSION option
in the example below the form name is called 'frmMyForm"
in the code :
Code:
sub button1_Click()
docmd.SendObject acSendForm ,"frmMyForm",acFormatPDF,txtTO,,,txtSubj,txtMsg
end sub
(oops, i said SendTo, but its actually SendObject)
place button on form
in the event property, ON CLICK event, click the EXPRESSION option
in the example below the form name is called 'frmMyForm"
in the code :
Code:
sub button1_Click()
docmd.SendObject acSendForm ,"frmMyForm",acFormatPDF,txtTO,,,txtSubj,txtMsg
end sub