ACC: Number Changed Without Warning When Number Is Too Large for Single Data TypeID: Q181155
|
Novice: 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.
This 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:
Q111781 ACC: Rounding Errors Using Floating-Point Numbers
Create 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.
Validation rule: <=3.402823E+38
Validation text: The number you entered is too large for this field.
The 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.
Table: tblTestType
-------------------------
Field Name: TestSingle
Data Type: Number
Field Size: Single
Format: General Number
3.4028235E+38
-3.4028235E+38
3.4028236E+38
For 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
Keywords : kbdta TblFldp TblDatyp
Version : WINDOWS:2.0,7.0,97
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: April 28, 1999