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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Overwrite a file

Status
Not open for further replies.

budz

Programmer
May 3, 2001
17
hi everybody, I have a form with data environment. Why the message "database already exist, overwrite it" always popup everytime i made a copy. I put set echo off, set talk off and set safety off on the form but still the message is there.

thanks for the help
 
Budz,
The Data Environment has it's own Enviroment, litterally. So, you need to specify them in the Data Environment. Open the DE, and in the "BEFORE OPEN TABLES" event, put in:

SET TALK OFF
SET SAFETY OFF

I haven't had to "SET ECHO OFF", so that is probably not necessary, but if you are doing something that requires that, you can put it there too. The biggest drawback to this is, you have to do it in every Form's DE that you need this type of coverage. (This is most common in Private Data Sessions, where you will DIE without SET TALK OFF!)

Best Regards,
Scott

Please let me know if this has helped [hammer]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top