Are you trying to search be values in a single field or by one of several
fields? Allen Browne has some sample code on setting the sorting dynamically
at http://allenbrowne.com/ser-33.html.

Signature
Duane Hookom
MS Access MVP
--
> Hello,
>
[quoted text clipped - 4 lines]
> start to sort by the value 5 ascending. I can do this by query, but I
> rather code it. Is this possible? Thank you in advance.
Alex Martinez - 21 Dec 2005 05:46 GMT
Both Duane, Thanks for your help. I will check out Allen Browne website.
> Are you trying to search be values in a single field or by one of several
> fields? Allen Browne has some sample code on setting the sorting
[quoted text clipped - 8 lines]
>> start to sort by the value 5 ascending. I can do this by query, but I
>> rather code it. Is this possible? Thank you in advance.