What I am trying to do is output a report as a snaphot to a folder on the server. The problem is that since these reports change daily, I would like to put the date ran in the file name somewhere. I.E. Attendance 021805.snp (The format of the date does not matter, only that it is there)
As a starting point someone showed me the following.
mDofReport = Format(Date, "yyyy-mm")
DoCmd.OutputTo , "Attendance Absence Summary By Plant", acFormatSNP, "I:\Attendance Reports\Attendance Absence Summary By Plant" & mDofReport & ".snp", True
I know it does not have the date correctly but it would be a starting point. However, the error:
Compile Error
Argument not optional
Keeps appearing. Any suggestions?
As a starting point someone showed me the following.
mDofReport = Format(Date, "yyyy-mm")
DoCmd.OutputTo , "Attendance Absence Summary By Plant", acFormatSNP, "I:\Attendance Reports\Attendance Absence Summary By Plant" & mDofReport & ".snp", True
I know it does not have the date correctly but it would be a starting point. However, the error:
Compile Error
Argument not optional
Keeps appearing. Any suggestions?