Does anyone know how I can change the following:
Dim strDate As Date
Dim strFileName As String
strDate = Date – WeekDay(Date – 6) – 7
strFileName = “PH_Exp$” & strDate
DoCmd.CopyObject “”, (strFileName), acTable, “PH_Exp$”
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel97, strFileName, c:burncdstrFilename.xls”, True
When the table changes the name to strFileName I get this…. PH_Exp&4/27/01…..I want this….PH_Exp$42701
I have tried changing Dim strDate As Date to strDate As String…but no luck….
Hope someone knows the answer…
Thanks,