Perhaps try the outputto method of the docmd object:
[tt]docmd.outputto acoutputreport, "rpt1",acformatsnp, "c:\test\rpt1.snp"
...per each report[/tt]
As for automatic. Hmmm - you could explore the timer event of the form, for instance. But that would involve that the form (app) would have to be open at a given time each day - and perhaps also log if the current days report is alredy run... Or perform such on the on close/unload of the "last" form of the application (also recommend doing a test for wether "todays" reports have been run...)
As RoyVidar says you can use the docmd.OutputTo command which will output this for you......as for automatic you could be a little cheecky and create a dummy db that has links to your original.....what you do with this then is lock it down and have a startup for on open of the db.....with this form you use the on load event to run the code that will export your reports either in turn or using recordsets and then closes the db......after completing this you would need to set a scheduled task on your box or whatever location to simply open the db this will then fire the form and on load procedure and will run your code automatically for you.
there are other ways but there just not as cheeky as this!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.