Number field in database

This forum is a self-help system for the exchange of ideas among AppleWorks users.

Number field in database

Postby jh » Sun Jun 12, 2005 2:58 pm

I have a weaving inventory DB which has a field for the warp number which should go consecutively (1 2 3 4 etc.) When set as a number field it goes from 1 to 10, 10 to 109, 11 to 119 etc. I tried to redefine the field to serial number but I must be doing something wrong because it doesn't change it. Thanks for your previous help
jh
 
Posts: 9
Joined: Fri Oct 01, 2004 8:59 pm
Location: Upstate NY

Re: Number field in database

Postby haumann » Sun Jun 12, 2005 3:53 pm

jh wrote:I have a weaving inventory DB which has a field for the warp number which should go consecutively (1 2 3 4 etc.) When set as a number field it goes from 1 to 10, 10 to 109, 11 to 119 etc. I tried to redefine the field to serial number but I must be doing something wrong because it doesn't change it. Thanks for your previous help


Check your intended numeric fields using the Define Fields dialog once more. The order you are observing occurs when you sort on a field that is defined as Text.

John@was
haumann
 
Posts: 961
Joined: Sun Aug 25, 2002 8:16 pm
Location: San Antonio

Re: Number field in database

Postby Barry » Sun Jun 12, 2005 3:58 pm

jh wrote:I have a weaving inventory DB which has a field for the warp number which should go consecutively (1 2 3 4 etc.) When set as a number field it goes from 1 to 10, 10 to 109, 11 to 119 etc. I tried to redefine the field to serial number but I must be doing something wrong because it doesn't change it. Thanks for your previous help


I assume your first sentence means that when the records are sorted on this field they are sorted alphabetically (1, 10, 101...109, 11, 110,etc.) rather than numerically (1, 2, 3, 4...9, 10, 11...19, 20, etc.).

I could duplicate this (with a 500 record DB containing only the single field, whic held the numbers from 1 to 500) only by defining the field as a Text type field. When I changed it to a Number type field, it sorted in numerical order.

Regards,
Barry
Barry
 
Posts: 1390
Joined: Mon Sep 30, 2002 12:54 am
Location: 48°50' N 123° 30'W

Number field in database

Postby jh » Tue Jun 14, 2005 4:41 pm

Thanks, Haumann and Barry, The word "sort" brought me to my senses. I had forgotten to do that.
jh
 
Posts: 9
Joined: Fri Oct 01, 2004 8:59 pm
Location: Upstate NY


Return to AppleWorks Help

cron
AppleWorks Users Group Logo iWork Users Group Logo