G
Guest
I need some help. I'm wanting to email management reports automatically on
monday of every week, without the need to manually run the reports. I have a
couple of functions that do this just fine and it works great. However, I
have some reports that I pass criteria information using a form input that
criteria, like begin date and end date. I want to pass this "begin/end"
critera using VBA, then email the results in the report format using VBA
For example:
My form that has two text fields one for "Begin Date" and one for "End Date"
When the user submits that form it calls a query and that query accepts the
inputs from the text boxes and is used to build the report. This is what I
want to accomplish using VBA, but without any user interaction, because the
reports will be ran in the middle of the night.
Here's my VBA code:
[Forms]![frm_date_criteria(reminders)]!beg_date = Now()-30
[Forms]![frm_date_criteria(reminders)]![end_date] = Now() + 90
When I run this I get an error saying this form can't be found.
monday of every week, without the need to manually run the reports. I have a
couple of functions that do this just fine and it works great. However, I
have some reports that I pass criteria information using a form input that
criteria, like begin date and end date. I want to pass this "begin/end"
critera using VBA, then email the results in the report format using VBA
For example:
My form that has two text fields one for "Begin Date" and one for "End Date"
When the user submits that form it calls a query and that query accepts the
inputs from the text boxes and is used to build the report. This is what I
want to accomplish using VBA, but without any user interaction, because the
reports will be ran in the middle of the night.
Here's my VBA code:
[Forms]![frm_date_criteria(reminders)]!beg_date = Now()-30
[Forms]![frm_date_criteria(reminders)]![end_date] = Now() + 90
When I run this I get an error saying this form can't be found.