Link to home
Start Free TrialLog in
Avatar of Patrick O'Dea
Patrick O'DeaFlag for Ireland

asked on

Quickie ! Adding Date/Time onto Excel sheet exported from Access

See attached code which generates a spreadsheet.

How do I add the date and time to the exported file name.
E.g. AccessDatabaseSalesExport_311211230859" or similar.


I tried a few things and failed!
DoCmd.TransferSpreadsheet acExport, 10, "qryExportTemp", "" , True, shtName

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Boyd (HiTechCoach) Trimmell, Microsoft Access MVP 2010-2015
Boyd (HiTechCoach) Trimmell, Microsoft Access MVP 2010-2015
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Patrick O'Dea

ASKER

Thank you !