Sorting

Joined
Jun 28, 2011
Messages
1
Reaction score
0
G'day All,

I have a database which is used to store vehicle fleet information.

Within the database I need to sort a field "Body #". This field is formated as text as there are body numbers which start with letters. I have a query which sorts out a particular body builder and the body numbers which are returned are two numbers, separated by a "-" followed by three more numbers (ie 87-145). When I do a ascending sort, I get results 00-123, 01-123, 02,-123, 88-123, 89-123, 99-123 etc. What I need to do is change the order so first body number would be 88-123, 89-123 and when it gets to 00-123, put that after 99-123. The first to digits are the last two digits of build year. 1988 = 88-123, 2000 = 00-123 etc. The final three are the build number within the build year.

A long winded description I know lol Sorry for that. Can anyone help please?? I'm at a bit of a loss with this one.

Thank You in Advance :cheers:
Anthony
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Crosstab query possibly? 2
Link Question 1
Query 3
How do I make an "Option" Query 2
Duplicates 3
I need help working with parameters!!!! 3
Update telephone numbers 1
count alphabetically within a sort 2

Top