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

Sorting Problem

Status
Not open for further replies.

SmokeEater

Technical User
Feb 14, 2002
90
CA
I am having difficulty getting my Access Query to sort numbers properly. Here is a sample.

1170
120
1215
1370
1370
1463
172
1734
1764
1972

How do I fix this? I have tried moving this column to the first position, with sort ascending on, to no avail.
 
Seems that the field is not numeric but text.
ORDER BY Val(YourField)

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
PHV, Thanks for the help. Applying Val( ) has fixed the problem.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top