Article ID: 837148 - Last Review: July 28, 2006 - Revision: 1.2 BUG: You may notice an incorrect sorted order when you sort the negative decimal values in descending order in AccessThis article applies only to a Microsoft Access database (.mdb). Moderate: Requires basic macro, coding, and interoperability skills. On This PageSYMPTOMSWhen you sort the records in a Number field in descending order, and the Field Size property of the Number field is set to Decimal, you may notice that the negative values in the field are not sorted in the correct order. This problem occurs in a Microsoft Access table. For example, you can sort a Number field in descending order that contains the following data: 20, -10, 5, -5, 10, -20 After you sort the Number field in descending order, you may notice that the sorted data appears in the following order: -5, -10, -20, 20, 10, 5 WORKAROUNDTo work around this problem, create an index on the Number field before you sort the records in the Number field. To do this, follow these steps:
STATUS Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article. MORE INFORMATIONSteps to reproduce the problem
REFERENCES
For more information about indexes in Access 2003, click Microsoft Office Access Help on the Help menu, type About indexing fields and records in an Access database (.mdb) in the Search for box in the Assistance pane, and then click Start searching to view the topic.
For more information about indexes in Access 2002 and Access 2000, click Microsoft Access Help on the Help menu, type About indexing fields and records in an Access database in the Office Assistant or the Answer Wizard, and then click Search to view the topic. For more information about sorting in Access 2003, click Microsoft Office Access Help on the Help menu, type About sorting records in the Search for box in the Assistance pane, and then click Start searching to view the topic. For more information about sorting in Access 2002 and Access 2000, click Microsoft Access Help on the Help menu, type About sorting records in the Office Assistant or the Answer Wizard, and then click Search to view the topic. | Article Translations
|
Back to the top
