Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CA and Insert command
Message
 
 
À
06/03/2007 17:34:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01201258
Message ID:
01201278
Vues:
16
Beth,

In this case only macro substitution will work
    INSERT INTO (patables[pnrow, 2]) (&lcfields) ;
        SELECT &lcfields FROM cctable 
>
>I have a ADO recordset into a CA, I fill a temporary cursor on the side with the info needed in the CA, now I want to put the info in the temporary cursor into the CA, I use the following, but am getting syntax error, what am I missing?
>
>
>    lcfields = ALLTRIM(patables[pnrow, 4])
>    INSERT INTO (patables[pnrow, 2]) (EVALUATE(lcfields)) ;
>      SELECT (EVALUATE(lcfields)) FROM 'cctable' WHERE .T.
>
>
>cctable is the temporary cursor
>patables is an array that holds info about the SQL server table that needs to be entered.
>lcfields is the character list of the fields in the CA.
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform