Results 1 to 3 of 3

Thread: sorting a text datafield

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2005
    Posts
    9

    Unhappy sorting a text datafield

    Hi, I want to sort a text datafield into numeric format.

    e.g
    original data
    1
    10
    2
    3
    30
    4

    sorted data
    1
    2
    3
    4
    10
    20

    anyone got idea with it? please help

    thanks

  2. #2
    Frenzied Member pnish's Avatar
    Join Date
    Aug 2002
    Location
    Tassie, Oz
    Posts
    1,918

    Re: sorting a text datafield

    Create a formula in your report that converts your text data to numbers, ie formula = Val(your text field here) and then set the report to sort by the formula instead of the text field.
    Pete

    No trees were harmed in the making of this post, however a large number of electrons were greatly inconvenienced.

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: sorting a text datafield

    You can also make each of your text numbers double digits and they will sort properly.

    In other words:

    01
    02
    03
    04
    05
    06
    07
    08
    09
    10

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width