ACC: No Warning When Number Is Too Large for Single Data TypeLast reviewed: March 3, 1998Article ID: Q181155 |
The information in this article applies to:
SYMPTOMSNovice: Requires knowledge of the user interface on single-user computers. If you enter a value into a field whose data type is Single, and that value is greater than what the Single data type allows, you may not receive a warning message. Instead, Microsoft Access silently replaces the value that you entered with the largest possible value allowed by the data type.
CAUSEThis behavior is caused by a rounding problem that can occur when a decimal fraction does not have an exact binary equivalent. For further information, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q111781 TITLE : ACC: Rounding Errors Using Floating-Point Numbers RESOLUTIONCreate a validation rule if you want a warning to appear when you've entered a number that is too large or too small for the data type of the field.
Example of a Validation Rule
MORE INFORMATIONThe range of a single-precision floating-point number is -3.402823E38 to -1.401298E-45 for negative values and 1.401298E-45 to 3.402823E38 for positive values.
Steps to Reproduce Behavior
REFERENCESFor more information about data types, search the Help Index for "Single data type" and display the topic "Data Type Summary." For more information about validation rules, search the Help Index for "validating data, setting up data validation" and display the topic "Restrict or validate data."
|
Additional query words: number changed without warning no error message
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |