jd_boss_hogg
Registered User.
- Local time
- Today, 19:30
- Joined
- Aug 5, 2009
- Messages
- 88
Hi guys,
I'm a complete newby to VBA coding, and hoping someone here can help.
I currently have a peice of code that exports a file called "john.csv". However, i'd like this filename to actually carry the date that it was created in the name itself, so something like this... "john_01_09_2009.csv". It doesn't have to match that formatting, just something that obviosuly ties in with the date. Any clues on how to do it?
Currently, here is the line that exports the file. I presume that i need to set a string variable to replace the file name constant.
DoCmd.OutputTo acOutputQuery, "NewCSVExport", acFormatXLS, "c:\john.csv"
Thanks very much !
I'm a complete newby to VBA coding, and hoping someone here can help.
I currently have a peice of code that exports a file called "john.csv". However, i'd like this filename to actually carry the date that it was created in the name itself, so something like this... "john_01_09_2009.csv". It doesn't have to match that formatting, just something that obviosuly ties in with the date. Any clues on how to do it?
Currently, here is the line that exports the file. I presume that i need to set a string variable to replace the file name constant.
DoCmd.OutputTo acOutputQuery, "NewCSVExport", acFormatXLS, "c:\john.csv"
Thanks very much !