Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OutPut To

Status
Not open for further replies.

shart00

Technical User
Jun 16, 2003
63
US
I would like to set up a macro that when ran will output reports as a snapshot to a folder on the server. The problem is that I do not want the files to be overwritten each time the macro runs. Therefore, I am looking for a way to include the date in the file name to be saved. Such as when it runs today the file would be:
Attendance 021405
run tomorrow:
Attendance 021505

The format of the date does not matter that much, as long as it can be understood and does not overwrite the previous day's report.

Any suggestions?
 
Time to play with VBA (Format and Date functions, DoCmd.OutputTo method).

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top