P
perryclisbee via AccessMonster.com
I am exporting the results of a query into excel, and saving the spreadsheet
as a date/time specific name. Below is the structure I was trying to use:
strFileName = strPath & "SPA_" & "Karla" & "_" & CStr(Format(Date, "mmddyyyy")
) & "_" & CStr(Format(Date, "hhnn")) & ".xls"
All this does is return a saved file that looks like this:
Karla_04172007_0000.
I want the query/export to generate a unique filename each time it exports
and saves, even if it is exported every 10 minutes. Why won't the hours and
minutes (hhnn) show up on the saved name? Any ideas?
thanks,
Perry
as a date/time specific name. Below is the structure I was trying to use:
strFileName = strPath & "SPA_" & "Karla" & "_" & CStr(Format(Date, "mmddyyyy")
) & "_" & CStr(Format(Date, "hhnn")) & ".xls"
All this does is return a saved file that looks like this:
Karla_04172007_0000.
I want the query/export to generate a unique filename each time it exports
and saves, even if it is exported every 10 minutes. Why won't the hours and
minutes (hhnn) show up on the saved name? Any ideas?
thanks,
Perry