My Assistant
![]() ![]() |
|
|
Mar 9 2004, 03:48 PM
Post
#1
|
|
|
UtterAccess Member Posts: 21 |
I have a Column within a Table called Reference that contains a unique reference (Primary Key) in the following format UP1, UP2 etc. However, I am aware there is a problem with Access sorting these values. How do I get Access to sort them numerically?
|
|
|
|
Mar 10 2004, 03:21 AM
Post
#2
|
|
|
UtterAccess Addict Posts: 239 From: Belgium |
Create a query.
Add a column with following expression : SortOrder: Val(Mid([YourKeyField],3)) Replace YourKeyField with the name of your field Set the Sorting of this column to Ascending Add other fields you want to work with and base your forms and reports on this query. This suppose that the key always begin with two letters. |
|
|
|
![]() ![]() |
|
Go to Top · Lo-Fi Version | Time is now: 23rd May 2013 - 07:30 AM |