Sorting using the OrderBy Property

G

Guest

Hi,

I have set the OrderBy with the following code:

HiPlanNames.LastUpdated DESC

That works well for just one field, but I need now to
include another field (ST) wich should be sorted in
ascending order; when I put it in after the above, it
won't do it.

HiPlanNames.LastUpdated DESC;HiPlanNames.ST

Any suggestions or ideas, please ???
 
M

Marshall Barton

Hi,

I have set the OrderBy with the following code:

HiPlanNames.LastUpdated DESC

That works well for just one field, but I need now to
include another field (ST) wich should be sorted in
ascending order; when I put it in after the above, it
won't do it.

HiPlanNames.LastUpdated DESC;HiPlanNames.ST

A semicolon indicates the end of an SQL statement, use a
comma to separate the two fields.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top