Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Fastest way to update a field?
Message
 
To
09/07/2002 23:43:00
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00676899
Message ID:
00676914
Views:
24
>I am a VFP7 user. I have a database with approx 50,000 records.
>The "posted" field has the month/year that each transaction was posted (to the acctg ledger).
>
>At the end of this month, I will issue the command:
>
>REPLACE ALL posted WITH 'JUL02' FOR EMPTY(posted)
>
>Wow! is it slow. Can anyone help me optimize the operation?
>
>Thanks, Randy

Rabdy,

Create an index on Posted and do this;
REPLACE Posted WITH "JUL02" FOR Posted = SPACE(LEN(Posted))
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform