Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Forms & Fields
Message
 
 
To
13/04/2008 12:11:07
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01309067
Message ID:
01310386
Views:
14
>Thanks,
>
>Both of your ideas worked perfectly, I do have 1 more problem to get over,
>
>I need a simple (hopefully) way to truly move records from 1 table to another within the .dbc, however the part where it gets tricky for me is I need the table that the data is being moved from to be minus that record and the table where the data is updated to to have the new record added (all records are unique via lot# auto integer).
>
>Without using a lot of code with copy to delete and pack/zap every now and again I don't know another way.
>
>Any ideas?
>
>
>Thanks
>
>Fred W.

Hi Fred,

What is the criteria you're using to move records?

Basically, you can use the same criteria in both Insert and delete SQL commands, as
insert into MyNewTable select * from myOldTable where ...

delete from myOldTable where ...
I need more details from you to get the exact commands right, but hopefully this idea can get you started.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform