Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Syntax error
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
01304683
Message ID:
01304690
Views:
15
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
Previous
Reply
Map
View

Click here to load this message in the networking platform