Johnny Drama
In need of beer...
- Local time
- Yesterday, 20:13
- Joined
- Dec 12, 2008
- Messages
- 211
Hi all,
I'm using the following code to dump a report into an excel spreadsheet:
DoCmd.OutputTo acOutputReport, "rptPBC Query", acFormatXLS, "I:\pbcdump.xls", True
Since the report gets run multiple times I was wondering if there is a way to insert a time stamp as part fo the file name so previous files don't get overwritten.
Is this possible and if so, how?
Thanks in advance
I'm using the following code to dump a report into an excel spreadsheet:
DoCmd.OutputTo acOutputReport, "rptPBC Query", acFormatXLS, "I:\pbcdump.xls", True
Since the report gets run multiple times I was wondering if there is a way to insert a time stamp as part fo the file name so previous files don't get overwritten.
Is this possible and if so, how?
Thanks in advance