Avatar of Derek Brown
Derek Brown
Flag for United Kingdom of Great Britain and Northern Ireland asked on

Order by

Any way to stop access ordering numbers incorrectly

Please see attached
Capture6.PNG
Microsoft Access

Avatar of undefined
Last Comment
Gustav Brock

8/22/2022 - Mon
n2fc

It is using an alphabetic sort instead of numeric... You would have to change the contents of that field to use a 2 (or 3 digit, if the number portion exceeds 99) after the letter!
Derek Brown

ASKER
How do you change to numeric?

Derek
Gustav Brock

Specify this:

    Order By Val(Mid([Door Number],2))

/gustav
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
Derek Brown

ASKER
If I have

DS6ST and
DS4ST it does not order correctly. Is it possible to order this correctly? Bearing in mind the user could enter any number of alpha numeric combinations
Derek Brown

ASKER
Gustave

Your suggestion worked well on my previous example
ASKER CERTIFIED SOLUTION
Gustav Brock

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Derek Brown

ASKER
What a performance eh!

Thanks Gustav. Excellent
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Gustav Brock

You are welcome!

/gustav