Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Mystery
Message
De
18/03/1999 13:56:59
 
 
À
18/03/1999 09:43:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00199086
Message ID:
00199381
Vues:
19
>>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

Thanks a lot everybody! Finally got it. I changed the field name from Type to Category, changed the ORDER BY to 1 and tried putting quotes around the statement (although I have done dozens of them without it). Nothing worked. So I deleted the control from the form and put it in again, with the table change in place. Works like a charm now.

I really appreciate all the help . . .
John
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform