Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Report in user-defined order
Message
 
To
02/07/1998 06:38:39
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00113717
Message ID:
00113719
Views:
15
Bill,

You can use macro substitution. Try this:
m.lcOrder="Time"
SELECT * ;
  FROM mytable ;
  WHERE ... ;
  ORDER BY &lcOrder
>I have a form which when run allows the user to pick the order for which the report is printed. This is in a combo box that allows the user to pick the order 'time' or 'phone no'. Is there any way to put the variable in an ORDER BY statement of an SQL-SELECT or do I have to write two conditional SQL statements?
>
>TIA,
Previous
Reply
Map
View

Click here to load this message in the networking platform