I use the following code on a command button to export "Table1" into a spreadsheet called "Table1.xls .
This works fine but what I would like to do is save the spreadsheet like this: "Current Date"Table1.xls .
So if I did it today it would read "280808Table1.x ls"
Any ideas how I can do this?
Thanks
Code:
Private Sub Command14_Click() Private Sub Command14_Click() stDocName = "Table1" DoCmd.TransferSpreadsheet [acExport], , stDocName, _ "C:\ Export Folder\Table1.xls", 0 End Sub
So if I did it today it would read "280808Table1.x ls"
Any ideas how I can do this?
Thanks
Comment