Note that there are some explanatory texts on larger screens.

plurals
  1. POMS Access 2007: Add date to Excel Export
    primarykey
    data
    text
    <p>I currently have a 'Save Export' task that is saving a table (+1 million records) to an .xlsx file on a SharePoint folder via mapped network drive. I want to add the date to the file Excel file name.</p> <p>Currently for Export-Excel Spreadsheet: File Name is: <code>U:\Reporting\Extracts\Excel_filename.xlsx</code> File format: <code>Excel Workbook (*.xlsx)</code> Under Specify export options: I don't have anything checked. </p> <p>With Date: File Name is: <code>U:\Reporting\Extracts\Excel_filename_mm_dd_yyyy.xlsx</code> File format: <code>Excel Workbook (*.xlsx)</code> Under Specify export options: I don't have anything checked.</p> <p>I would want the final file name to be: <code>Excel_filename_09_18_213.xlsx</code></p> <p>I don't want to use VBA because creating the .xlsx file takes over 4 hours. Export the table directly to the SharePoint folder is faster, but I need to update the file name with the current date. Could I create a macro that adds the date to the file name before it is posted to SharePoint? Is there a 'RunCommand' or 'RunCode' command that I could run that would generate the file name with the date?</p> <p>I have tried the following for the file name, and they didn't work. I get "Failed creating file." "The specification failed to execute. Try re-creating the specification.":</p> <pre><code>U:\Reporting\Extracts\Excel_filename&amp;(Format(Date()),"yymmdd"))&amp;.xlsx U:\Reporting\Extracts\Excel_filename%Date:~12,2%%Date:~4,2,%%Date:7~2%.xlsx "U:\Reporting\Extracts\Excel_filename"&amp;(Format(Date()),"yymmdd"))&amp;".xlsx" U:\Reporting\Extracts\Excel_filename_(Format(Date()),"yymmdd")).xlsx </code></pre> <p>Many thanks in advance.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload