Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Mystery
Message
From
18/03/1999 09:43:30
 
 
To
18/03/1999 02:58:12
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00199086
Message ID:
00199177
Views:
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
Just in case, did you selected the RowSourceType="SQL Statement"? In the same lines as Jim Nelson, you can replace using the "ORDER BY Type" at the end with "ORDER BY 1". HTH
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform