I have a user that has created a macro to update an .snp file automatically ... she is having a problem with the confirmation popup "the file already exists do you want to replace it" ... she has set the SetWarnings option before and after her output command and is still getting the prompt to replace the file. I created the following simple module for her ...
Sub OutputReport()
DoCmd.SetWarnings False
DoCmd.OutputTo acOutputReport, "YourReportNameHere", acFormatSNP, "YourReportNameHere.snp"
DoCmd.SetWarnings True
End Sub
... and had her replace her OutputTo command in the macro with the RunCode command and had her fill in the function name at the bottom ...
She is still getting the yes/no confirmation popup ...
Can this be remedied ... or does SetWarnings not work on confirmation popups at all?
Thanks
gwoman
Sub OutputReport()
DoCmd.SetWarnings False
DoCmd.OutputTo acOutputReport, "YourReportNameHere", acFormatSNP, "YourReportNameHere.snp"
DoCmd.SetWarnings True
End Sub
... and had her replace her OutputTo command in the macro with the RunCode command and had her fill in the function name at the bottom ...
She is still getting the yes/no confirmation popup ...
Can this be remedied ... or does SetWarnings not work on confirmation popups at all?
Thanks
gwoman