Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Don't want to see "File already exists message"

Status
Not open for further replies.

Aerowolf

Programmer
Nov 6, 2002
64
I have buttons set up to print out reports and at the same time output them to a snapshot on the local network. How do I set it up so that the box "File already exists, do you want to replace?" does not show up?

I've tried turning off the warnings but that doesn't help.
I'm using a macro that looks like this:

SetWarnings No
OpenReport
Output To
SetWarnings Yes

Thanks

Edwin
 
Try to detect if file already exists, then delete it.

Use FileScripting Object... Can't find sample code... sorry, but pretty easy to use.



Steve Medvid
"IT Consultant & Web Master"
e-Mail: Stephen_Medvid@GMACM.com

Chester County, PA Residents
Please Show Your Support...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top