Hi,
Below is a snipet of code I’m working on.
My idea: I would like to take a table add a date to the name of the table then export it to Excel.
Everything seems to be fine, except I continue to get this msg “COMPILE ERROR–Expected: End of Statement”. This part of the code is highlighted when the error occurs (“PH_Labor”
Code:Dim strDate As Date
strDate = Date – WeekDay(Date – 6) – 14
‘ DoCmd.OutputTo acTable, “PH_Labor”, acFormatXLS,”G:UsersProjschdHistory ArchivesArchive History Lab(“PH_Labor” & strDate.xls) “, True
Can someone please tell me why?
Thanks,
Roberta Newton