Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Mystery
Message
De
18/03/1999 03:13:00
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
18/03/1999 02:58:12
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00199086
Message ID:
00199087
Vues:
21
>I have a combo box whose RowSource is SQL. The statement is as follows:
>
>SELECT DISTINCT Lookup.Type FROM Lookup INTO CURSOR csrType ORDER BY Type
>
>When I paste this into the command window, it works beautifully. However, when I run my form, the combo box is empty. When I press the Verify button in the Expression Builder of the control, I get the lovely "help" message: Syntax error. If there is a syntax error, why does it run in the command window???
>
>Anybody see what's wrong with this statement?
>
>TIA,
>John
John,
Might it be you use expression builder ? SQL should be there as a string. Just paste the SQL to recordsource or put it in quotes.
="Select ...."
select ...
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform