UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Table Properties - Sorting Numbers    
 
   
Tricky21
post 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?
Go to the top of the page
 
+
Francois
post 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 the top of the page
 
+

Thank you for your support! Reply to this topicStart new topic

Jump To Forum:
 



RSS Go to Top  ·  Lo-Fi Version Time is now: 23rd May 2013 - 07:30 AM