Ken Warthen said:
I have a report in an Access 2007 application that I
send as a pdf email attachment to a coworker on the
15th of each month. I'd like to automate the process
and have the email and attachment functionality working,
but can't figure out how to automate the date event.
An Access application can't "start itself", but Windows allows you to write
scripts can to start an application based date and time (don't ask me -- I
don't do Windows scripts). There's a command line parameter that lets you
specify a macro to be run when you start up an Access application.
Or, if you are _certain_ that your Access application will be started up
(loaded and entered by a user) on every 15th, then you can save in a local
table the last date the e-mail was sent and compare today's date to the
15th, and send the e-mail if need be, in your Startup code. If today's date
is greater than the last date the e-mail was sent and today's date is the
15th or later, run the report and send the e-mail.
MVP Stephen Lebans,
http://www.lebans.com, has a snapshot-to-pdf feature
that you can download and use for free (but without any support, except what
you can get in the newsgroups), if you are still working on that aspect of
the problem.
Larry Linson
Microsoft Office Access MVP