Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Append new record with same data as previous record?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Append new record with same data as previous record?
Miscellaneous
Thread ID:
00511348
Message ID:
00511348
Views:
33
I was wondering if there is an easy way to add a new record to a table, but I want the data from the previous record (used to be the last record in the table prior to APPEND) to appear in the new record. It's like a duplicate record is created on purpose. Only the record ID would be unique between the two records all other fields would be the same information.

I thought about using APPEND FROM, but that means I would have to copy the table to a temp table first and then APPEND FROM the last record from the temp table to the last record of the permanent table.

It's almost as if I want a new command called APPEND FROM table -1 so I append a new record, but all the fields are carried over from the old last record. Thanks for the help.
Steve Kramer
Kramer & Kramer Design
"Home of Go Cartoons"
Web Site: www.stephenkramer.com
Would you believe Far Side Lite?
More than 270 original cartoons.
Next
Reply
Map
View

Click here to load this message in the networking platform