Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Append from a table with autonum
Message
From
08/06/2011 02:16:12
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01513452
Message ID:
01513487
Views:
40
This message has been marked as a message which has helped to the initial question of the thread.
>I'm copying table contents from one file to another and ran into an error while copying a table with an autonumber field. It says the field is read-only (which makes sense, I guess), and won't copy the records using an append from statement. Is there a quick/standard way to get around this? I know I could do a file copy, but was hoping to just pull records as needed from the other table.
>
>As always, thanks in advance.

The trick is to eliminate the autoinc fields from the amount copied over.
To be able to use Fieldlists in xBase and SQL I build them into a variable
and makroexpand that for SQL or add as Fieldlist for xBase.

HTH

thomas
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform