Is there a way I can get a date/ time stamp for reports. I run a macro that creates a report and converts it to RTF in a server file. I want the name of the report to also contain the date and time modified. Help please.
They already have that. I need something so when The file is updated, I can view it in its folder and know which one is the most up-to-date one because it has the date in the name.
You need to add the Date and Time to the file name when you export the report. You will need to format the time stamp when you create the file name. This should give you an idea of what I mean using VBA [I do not use macros].
Code:
Dim sNow As String
Dim sPath As String
sNow = Format(Now(), "mmddyyyy-hhmmss")
sPath = "X:\ReportFiles\"
DoCmd.OutputTo acOutputReport, "YourReportName", acFormatRTF, sPath & "ReportName" & "_" & sNow & ".rtf", False