djmurphy58
Technical User
I would like to export and email a form to single person all with the push of a single button.
It's probably not that important for you to understand the contents of the report - except for the fact that each report has a unique date. To make a long story short, the report is a "daily cost report" for a construction jobsite. The user will input the date, followed by the quantity of work that was done, how many dollars of budget were generated, and the cost that was incurred to do the work on that date.
Based on that input, I currently have a button on the form that, when pushed, views the report based on the information that was input. This report gets generated daily and must be emailed to a single person on a daily basis. So my goal is to add another button to the form that will export and email the report to the person, all with the push of the button. So the necessary code needs to automatically enter the: email address, subject field, and, message field.
My email is currently set-up in Outlook - so that's a good start. I would like the report to be exported and emailed in rich text format (.rtf). If at all possible, I would like the file to be saved to a specific directory on my computer and automatically be given a name that corresponds to the date of the report.
But as for writing the code - well I've never written and VBA code in my life. So I'm wondering if someone could help me out with that.
Hopefully I gave you enough info to go on.
Thanks in advance,
Dennis
It's probably not that important for you to understand the contents of the report - except for the fact that each report has a unique date. To make a long story short, the report is a "daily cost report" for a construction jobsite. The user will input the date, followed by the quantity of work that was done, how many dollars of budget were generated, and the cost that was incurred to do the work on that date.
Based on that input, I currently have a button on the form that, when pushed, views the report based on the information that was input. This report gets generated daily and must be emailed to a single person on a daily basis. So my goal is to add another button to the form that will export and email the report to the person, all with the push of the button. So the necessary code needs to automatically enter the: email address, subject field, and, message field.
My email is currently set-up in Outlook - so that's a good start. I would like the report to be exported and emailed in rich text format (.rtf). If at all possible, I would like the file to be saved to a specific directory on my computer and automatically be given a name that corresponds to the date of the report.
But as for writing the code - well I've never written and VBA code in my life. So I'm wondering if someone could help me out with that.
Hopefully I gave you enough info to go on.
Thanks in advance,
Dennis