I export and save files everyday to send to clients and was wondering how you could add the date of the file to the file name. I have the export written in VBI
I export and save files everyday to send to clients and was wondering how you could add the date of the file to the file name. I have the export written in VBI.
With the current date?
You haven't said what method you are using, so the best I can do is
tell you to concatenate the file name with the date:
"FileName" & Format(Date,"mmddyyyy")
becomes
FileName06022004
Thank you for your reply. I have taught myself access out of
neccessity so any help would be greatly appriciated. This is what
I have done. This works but I have to go and add the date manually
to the file name. I know this can be automated.
Note the use of the acOutputQuery and the acFormatXLS constants.
Change "Query name" to the actual name of the query to be exported.
Change YourFileNameHere to the actual name of the file.
No need for the final False argument as False is the default, and if you don't use the
Template argument you don't need the "" so you can simply omit
everything after the ".XLS".
Thank You very much. You have made my day so much easier.
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.