report.orderby doesn't work?

H

hollsys

Using Access 2002, I have reports that have no sorting or
grouping defined in the report format; instead I let the
user select a sort order on the fly, with Ascending,
Descending qualifier.

When the sort order I'm applying has more than one fields
in it, and the DESC qualifier, the sort order just doesn't
get recognized. That is,
This WORKS:
strSortOrder = "TTD DESC"
me.orderby = strsortorder
me.orderbyon = true

this DOESN'T WORK:
strSortOrder = "TTD, Lastname, FirstName DESC"
me.orderby = strsortorder
me.orderbyon = true

Can anyone tell me why? Should I just stay away from
orderby altogether?
 

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