Home » questions » Order by SQL Statement not working.?
Order by SQL Statement not working.?
Hello, im trying to sort a text field that contains both text and numbers numerically. I have
"SELECT * FROM PRODUCTS WHERE PRO_TYPE = TYPE_ID ORDER BY PRO_NAME ASC"
My products that are displaying display as....
1, 11, 12, 2, 21, 22.... Instead of , 1, 2, 3, 4, ....
Any ideas?
Im coding in ASP (vb) If this helps anyone. Also, yes, the Access database field is a text field. Which to my understanding must stay a text field to hold the full name of the product. For example... i need the product name to display like.... 4.5 oz. Jar, 6 oz. Jar, 25 oz. Jar and so forth...
yes, a VARCHAR

Answers
Taztug
On 2006-08-14 11:46:50
sheeple_rancher
On 2006-08-14 11:59:53
© 2006. Sammy Z.
On 2006-08-14 18:18:21
bluedoggy2006
On 2006-08-14 13:13:37
Kryzchek
On 2006-08-14 13:03:22
willys56cj5
On 2006-08-14 11:52:55
John J
On 2006-08-14 11:54:33
easycoder_biz
On 2006-08-14 11:45:56