Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help with SQL Compare
Message
De
06/02/2006 01:48:25
Randy Wessels
Screentek Business Solutions, Llc.
Phoenix, Arizona, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Help with SQL Compare
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01093847
Message ID:
01093847
Vues:
73
Can anyone tell me why I get error 1814 - Queries of this type are not supported on line 10 (and I assume also on line 15). Is there a good workaround? I need to overright records on table A if records with the same manu_code are on table B. Both tables have the same name. Table A is the current file used in the application, table B is from a backup table.

If File(Thisform.copydir+'distributors.dbf') .and. File(Thisform.copydir+'dcatalogs.dbf')
olddistributors = appendfromdirectory+'distributors.dbf'
fromdir = appendfromdirectory+'dcatalogs.dbf'
USE dcatalogs EXCLUSIVE
USE distributors EXCLUSIVE
IF FILE(olddistributors) .and. FILE(fromdir)
DELETE FROM dcatalogs WHERE manu_code in ;
(select manu_code FROM distributors WHERE manu_code in ;
(select manu_code FROM &olddistributors))
INSERT INTO dcatalogs (manu_code,itemdesc,style) ;
SELECT manu_code,itemdesc,style FROM &fromdir ;
WHERE manu_code in ;
(select manu_code FROM distributors WHERE manu_code in ;
(select manu_code FROM &olddistributors))
ENDIF
ENDIF

Thanks,

Randy
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform