Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Syntax error
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
01304683
Message ID:
01304690
Vues:
14
This message has been marked as a message which has helped to the initial question of the thread.
>When i use this code i have syntax error
>
>Thisform.combo2.rowSource = ;
>"SELECT distinct code,descr, type  ;
>               FROM accounts;
>                WHERE type ="income";
>                                    INTO cursor combopapert"
>but when i try: WHERE type thisform.textt.value no error
>what is problem
>thanks

Hi,

The problem is in "" (double quotes) used twice in the same character expression. Use where type = 'income' instead and it should work.
Thisform.combo2.rowSource = ;
>"SELECT distinct code,descr, type  ;
>               FROM accounts;
>                WHERE type ='income';
>                                    INTO cursor combopapert"
>
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform