Click in the field and then the 'A-Z' icon on the icon bar. Use the 'Z-A' to
sort descending.

Signature
KARL DEWEY
Build a little - Test a little
Thank you for your reply...
I know this well,i need to crate a button to do this as usually i hide the
main menu bar from my database...
> Click in the field and then the 'A-Z' icon on the icon bar. Use the 'Z-A' to
> sort descending.
[quoted text clipped - 4 lines]
> > the code that i should use in the click event of a button?
> > I do want to do the same to sort it decendingly..
KARL DEWEY - 26 Dec 2007 21:28 GMT
Ok, one way is to create two queries, one sorting ascending and the other
descending.
Add a new field to each like this ---
Sort_Field: [Forms]![YourFormName]![CheckBox]
In the query for one use a -1 (minus one) as criteria and the other use a 0
(zero).
Put both queries in a union query. Use the union query as source for the
form. In the CheckBox event After Update have it requery. Label it 'Sort
Ascending' so when checked it will be a -1.
Only one of the first two queries will pull records to output from the union.

Signature
KARL DEWEY
Build a little - Test a little
> Thank you for your reply...
> I know this well,i need to crate a button to do this as usually i hide the
[quoted text clipped - 8 lines]
> > > the code that i should use in the click event of a button?
> > > I do want to do the same to sort it decendingly..