Jump to content

Script Error using the Replace command


This topic is 7264 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies

I have a new database that I'm trying to replace data in a field from within a script. It is a very simple replace-all function, or so I thought. The message is "The previous script step, "Replace", could not be completed because it restores an invalid request. Do you wish to continue?"

The command completes normally if I use the manual method or the script method with dialog. It will generate the message if I try to automate the task with no dialog.

Please help . . . Chris

Link to comment
Share on other sites

quote:

Originally posted by Detroit Chassis:

I have a new database that I'm trying to replace data in a field from within a script. It is a very simple replace-all function, or so I thought. The message is "The previous script step, "Replace", could not be completed because it restores an invalid request. Do you wish to continue?"

The command completes normally if I use the manual method or the script method with dialog. It will generate the message if I try to automate the task with no dialog.

Please help . . . Chris

I want to enter a word of caution about the use of the Replace command. Be especially careful what you're doing. You can toast an entire set of data in a file if you don't.

Also, in a multiuser situation, you must trap for a particular record's being locked during this process. The replace will fail on that record if it is locked.

HTH

Old Advance Man

Link to comment
Share on other sites

This topic is 7264 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.