incorporating todays date in filename

emcf

Member
Local time
Today, 11:17
Joined
Nov 14, 2002
Messages
209
morning all,

is there any way that i can incorporate today's date in the name of a file that i want to export to an excel file? i presume date() must be involved somewhere but i can't work out how to do it.
the export is going to be done via on click of a command button......

thanks,



woo-hoo!! it be friday!!
 
In what format do you want the date to be?
 
i need the filename to be along the lines of "financelist 241003.xls"....basically just any format of date as long as it is there.

thanks,
 
A simple example would be:

Code:
DoCmd.TransferSpreadsheet acExport, 8, "MyTable", "FinancialList" & Format(Date, "ddmmyy"), True

Obviously, though, you'd need to put the whole path into the filename.
 
cheers mile-o

that will do perfect - very much appreciated!!

euan
 

Users who are viewing this thread

Back
Top Bottom