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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sorting numbers (text) in a report

Status
Not open for further replies.

kids7

Technical User
May 1, 2003
1
US
When sorting numbers in a text field in an access report I get 1,10,100,101,102,......then 2,20,200,201 and so on. How do I get the sort to be 1,2,3,4 etc.

Thanks
 
you can make a calculated field in your query that your report is based on. make it
Code:
=cint([field])
then use that field to sort/group on in the report, but don't display it if you don't want to.

or you can put an unbound text box on your report, and put in the same type of formula. cint means Convert to Integer.
whatever works for your particular case.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top