I have a report in access that I save on the network as a snapshot in a designated folder. I can run this and it works fine. However it does not work for my coworker. She gets the error: "The report snapshot was not created because you dont have enough free disk space for temporary work files" The folder does exist and I am not using any invalid characters. Why would this work for me and not for another person? Here is the code:
strSQL = "SELECT PreschoolOutcomeDataExitFinal.TeacherOfSvc from PreschoolOutcomeDataExitFinal group by PreschoolOutcomeDataExitFinal.TeacherOfSvc;"
Set rs = dbs.OpenRecordset(strSQL)
Path = "\\sccps-bull1\Shares\Sped\Spec_ed\PreschoolOutcomeReports\Exit\"
Folder = Path & Format(Date, "yyyy-mm-dd")
MkDir Folder
DoCmd.OpenReport "rptPreschoolOutcomeDataExit", acViewDesign
Do Until rs.EOF
Name = rs.TeacherOfSvc
Reports!rptPreschoolOutcomeDataExit.Filter = "TeacherOfSvc = '" & Name & "'"
Reports!rptPreschoolOutcomeDataExit.FilterOn = True
Report = Folder & "\" & Format(Date, "yyyy-mm-dd") & " " & Name & " rptPreschOutcomeExit.snp"
DoCmd.OutputTo acOutputReport, "rptPreschoolOutcomeDataExit", acFormatSNP, Report
rs.MoveNext
If rs.EOF Then
Reports!rptPreschoolOutcomeDataExit.Filter = " "
Reports!rptPreschoolOutcomeDataExit.FilterOn = False
End If
Loop
DoCmd.Close acReport, "rptPreschoolOutcomeDataExit", acSaveYes
rs.Close
Application.DoCmd.SetWarnings True
strSQL = "SELECT PreschoolOutcomeDataExitFinal.TeacherOfSvc from PreschoolOutcomeDataExitFinal group by PreschoolOutcomeDataExitFinal.TeacherOfSvc;"
Set rs = dbs.OpenRecordset(strSQL)
Path = "\\sccps-bull1\Shares\Sped\Spec_ed\PreschoolOutcomeReports\Exit\"
Folder = Path & Format(Date, "yyyy-mm-dd")
MkDir Folder
DoCmd.OpenReport "rptPreschoolOutcomeDataExit", acViewDesign
Do Until rs.EOF
Name = rs.TeacherOfSvc
Reports!rptPreschoolOutcomeDataExit.Filter = "TeacherOfSvc = '" & Name & "'"
Reports!rptPreschoolOutcomeDataExit.FilterOn = True
Report = Folder & "\" & Format(Date, "yyyy-mm-dd") & " " & Name & " rptPreschOutcomeExit.snp"
DoCmd.OutputTo acOutputReport, "rptPreschoolOutcomeDataExit", acFormatSNP, Report
rs.MoveNext
If rs.EOF Then
Reports!rptPreschoolOutcomeDataExit.Filter = " "
Reports!rptPreschoolOutcomeDataExit.FilterOn = False
End If
Loop
DoCmd.Close acReport, "rptPreschoolOutcomeDataExit", acSaveYes
rs.Close
Application.DoCmd.SetWarnings True