Custom Sort Order

ToddK

Board Regular
Joined
Dec 20, 2002
Messages
67
Can anyone tell me how to create a custom sort order in an Access Report on a given field? I have a field with data that looks like this:

1A, p.1
1AA, p.2
1AB, p.3
1B, p.1

What I would like is for all the "double-letter" units to sort after the singles, so that this list above would come out on report as:
1A, p.1
1B, p.1
1AA, p.2
1AB, p.3

I'm no rocket scientist with Access, so if you are going to describe something complex, please give me detail :wink:

ToddK
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Sorting in Access can be a bit of a pain. In order to sort exactly the way you want to:
-Add a field to your table in design view and call it something like "Sort Number". Make it a numeric field
-Put numbers in this field in Ascending order the way you want these records sorted. EX: 1A=1, 1B=2, etc.
-Build a query off of this table, Sort Ascending by the new field and unclick "Show" for this field so that you don't see it. Run your query and the records will be sorted the way you like. You will then build your report off of this query. This is a manual task and not really practical when you have a huge recordset, but unfortunately, Access is very limited in its ability to sort.
This message was edited by Dugantrain on 2003-02-21 14:43
 
Upvote 0

Forum statistics

Threads
1,221,493
Messages
6,160,139
Members
451,624
Latest member
TheWes

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top