kill File Function
Hey Gary,
Success at last. I did some additional experimentation and was able to use what you gave me and combine it with the DoCmd output from a standard macro with the OutputTo Action after having converted the macro to VBA. The function I ended up with looks like this below:
Public Function KillFile()
If Dir("S:\FEIN\Kanban Systems in Access\Kanban Oracle Interface\Kanban Oracle Interface.xls") <> "" Then
Kill ("S:\FEIN\Kanban Systems in Access\Kanban Oracle Interface\Kanban Oracle Interface.xls")
DoCmd.OutputTo acQuery, "Open Tasks for Interface", "MicrosoftExcelBiff8(*.xls)", "S:\FEIN\Kanban Systems in Access\Kanban Oracle Interface\Kanban Oracle Interface.xls", False, "", 0
Else
DoCmd.OutputTo acQuery, "Open Tasks for Interface", "MicrosoftExcelBiff8(*.xls)", "S:\FEIN\Kanban Systems in Access\Kanban Oracle Interface\Kanban Oracle Interface.xls", False, "", 0
End If
End Function
Thanks so much for the help.