Because you're using the Format function, the value is being converted to a
string. If you strictly set the Format property of the field, the value
wouldn't be converted. If you keep the function, you can add the field
unformatted to the query, and sort on it.
--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)
"dataH" <(E-Mail Removed)> wrote in message
news:smuAl.22901$(E-Mail Removed)...
> This example is from the currency formating and the resulting sort order
>
> $1,123,000
> $1,175,000
> $1,183,500
> $1,200
> $1,200,000
> $1,231,200
> $1,250
> $1,250,000
> $1,277,500
> $1,284,530
> $1,290
>
>
> "Jeff Boyce" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
>> I'm having trouble imagining ... could you post an example of how it is
>> sorting?
>>
>> Regards
>>
>> Jeff Boyce
>> Microsoft Office/Access MVP
>>
>> "dataH" <(E-Mail Removed)> wrote in message
>> news:yDtAl.22887$(E-Mail Removed)...
>>> OK, you are correct. I was expecting something else.
>>>
>>>
>>>
>>>
>>> Better example below:
>>>
>>>
>>>
>>> Here is an example: I have a number field in a query. This field is
>>> not formatted with 000,000 etc. For ease of reading, I would like to
>>> format this field so 55555 becomes 55,555. The following causes these
>>> numbers to sort A-Z rather than largest to smallest
>>>
>>>
>>>
>>> Bldg: Format([NumberField],"#,##0")
>>>
>>>
>>>
>>> 500
>>>
>>> 501
>>>
>>> 55,000
>>>
>>> 56,000
>>>
>>> 600
>>>
>>> 601
>>>
>>> 6,000
>>>
>>>
>>>
>>> Same with Currency formatting. My sale field is a number (no $ or ,)
>>> that sorts largest to smallest which is what I want, however, the $
>>> formatting makes the sort A-Z causing the strange sort order.
>>>
>>>
>>>
>>> SalePrice: FormatCurrency([Sale],0)
>>>
>>>
>>>
>>>
>>>
>>> What conversion function or formatting should I use to retail correct
>>> large to small sort.