Question : Suppress Message Box when creating output file

The following Code:

DoCmd.OutputTo acOutputReport, "ReportName", acFormatRTF, "c:\ReportRTF\" & OutputFileName & ".rtf", False

will give out a pop-up message box saying : "Now outputting 'ReportName' to the file 'C:\ReportRTF\OutputFileName.RTF'"
This will be ok if one is just dealing with one report output.
However, when one is running the same line of code over a loop of very many records, the pop-up message box will prevent one to work on other things as the message box keeps on going to the foreground.

My question is: Is there a way to suppress the said message box using code?
I have tried application.echo false, also tried docmd.setwarnings false.  I was able to minimize the ACCESS application using code but the message box keeps on coming up to the foreground.  Is there an API Call which can be used?

Thanks in advance for your help.
Code Snippet:
1:
DoCmd.OutputTo acOutputReport, "ReportName", acFormatRTF, "c:\ReportRTF\" & OutputFileName & ".rtf", False

Answer : Suppress Message Box when creating output file

Bill_388,

You can try the links puppydogbuddy provided.

FWIW, I usually just live with the pop-up.

My feeling is that there is a "Reason" why you can't supress it.
So I don't fight it,  I just leave it.

As puppydogbuddy will tell you it is sometimes a pain (not worthe the trouble) trying to over-ride the default functionality in Access.

;-)

JeffCoachman
Random Solutions  
 
programming4us programming4us