Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy records from one dbf to another dbf
Message
 
To
18/07/2004 23:33:54
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00925641
Message ID:
00925664
Views:
7
>Dear Sir,
>
>I have two tables the first is "Master" and the other is "Group".
>The both tables has common fields as
>
>code n(6)
>name c(40)
>
>For Group table, I want to copy, from Master table, only those codes that are not exists in Group table.
>
>Index is on code field.
>
>Please help

Also
use Master in 0
select master
index on code tag code
Use Group in 0
select group
index on code tag code
select Master
scan
if seek(master.code,"Group","code")
   * Ignore, "code" is already in group
else && add "code" to group
   append blank in group
   replace group.code with master.code,group.name with master.name in Group
endif
endscan
Imagination is more important than knowledge
Previous
Reply
Map
View

Click here to load this message in the networking platform