Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to implement a "double sort"

Status
Not open for further replies.

aMember

Programmer
Jun 12, 2002
99
0
0
US

I have a database that keeps track of comments users make on files being reviewed. When we review several files at once, things get quite confusing. Among others, there are2 fields, a "filename field" (the type of the field is chars but it is the one that is constrained to ~50 characters) and a integer line number field.

I want to be able to sort on the filename field and THEN line number.

The general 'sort' only lets you sort on one field. Anyone ever sort on more than one?
 
When viewing the table, select "Records / Filter / Advanced Filter/Sort" and select the fields to be sorted. Right click and "Apply" when you have completed your selection.
 
If your form is based on a query, then use the group by clause in SQL.

 

Thanks so much. Will try it out tomorrow.
 
Nowell

Did you mean "ORDER BY" rather than "GROUP BY"?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top