bdsii
01-26-2011, 01:02 PM
I am new to Access and VBA and am hoping someone here can help. I would like to accomplish the following using Access commands or through VBA:
When a new record is added via a form, the user would click on a command button and the contents of the form for the new record would be emailed to a predetermined listing of recipients with the data from the form being included inside the body of the email as TXT and not as an attachment.
The data that is being sent should be only for the new record and not the records for the entire table.I can send the form contents as several different types of attachments using the SendObject command inside a macro but have not found a way to simply paste the data inside an Outlook email rather than using an attachment.
Basically, I would like the same results as if the user had submitted the data in an HTML document with the MAILTO command and enclosure type as plain text.
I am zipping and attaching a sample db in case it helps. It has one table, one form and one macro that sends the info from the form as an attachment. I am hoping to replace the attachment with text directly in the email for the newly added record. I have not figured out how to even use the attachment to send out only the newly added record.
I am hoping that VBA may allow this to be solved. Any ideas ?
Thanks in advance for any help or advice.
When a new record is added via a form, the user would click on a command button and the contents of the form for the new record would be emailed to a predetermined listing of recipients with the data from the form being included inside the body of the email as TXT and not as an attachment.
The data that is being sent should be only for the new record and not the records for the entire table.I can send the form contents as several different types of attachments using the SendObject command inside a macro but have not found a way to simply paste the data inside an Outlook email rather than using an attachment.
Basically, I would like the same results as if the user had submitted the data in an HTML document with the MAILTO command and enclosure type as plain text.
I am zipping and attaching a sample db in case it helps. It has one table, one form and one macro that sends the info from the form as an attachment. I am hoping to replace the attachment with text directly in the email for the newly added record. I have not figured out how to even use the attachment to send out only the newly added record.
I am hoping that VBA may allow this to be solved. Any ideas ?
Thanks in advance for any help or advice.