Newbies BigBadMac Posted August 21, 2004 Newbies Posted August 21, 2004 OK, so I'm feeling meek... How do I get FM to sort numbers as whole numbers? This was easy in some PC based DB programs but I cannot seem to find any way to have my return sorts come back the way I need them to. What's the trick? What FM does...............What I want 1..................................1 10................................2 10052..........................3 2..................................10 3..................................379 379..............................10052
-Queue- Posted August 21, 2004 Posted August 21, 2004 Include as many leading zeroes as you may have maximum digits. Create a text calculation of Right( "00000000" & number; 8 ), for example, if you anticipate no number greater than 99999999. Then sort on this field.
The Shadow Posted August 21, 2004 Posted August 21, 2004 If you change your field type to "number", they will sort properly.
-Queue- Posted August 21, 2004 Posted August 21, 2004 I agree with The Shadow, as long as they should be number fields. If they are ID numbers or some other type of data on which you're not performing any numeric calculations, then you may not want to change them to number.
Newbies BigBadMac Posted August 21, 2004 Author Newbies Posted August 21, 2004 OK, I get the field type as numbers, but let's say I want to include alpha as well. For instance if I have a number such as 148-b3? Can a number field accept alpha?
The Shadow Posted August 21, 2004 Posted August 21, 2004 You can include it, but the "b" won't be indexed, so if you use a value-list on this field, only one of "148-a3" and "148-b3" will be shown, because they are considered to have the same numeric value. Similarly, 148-a3 will be related to 148-b3 if they are join keys, and it is tricky to find one without the other.
Recommended Posts
This topic is 7398 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now