Article ID: 181155
Article Last Modified on 1/22/2007
APPLIES TO
- Microsoft Access 2.0 Standard Edition
- Microsoft Access 95 Standard Edition
- Microsoft Access 97 Standard Edition
This article was previously published under Q181155
Novice: Requires knowledge of the user interface on single-user computers.
SYMPTOMS
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.
CAUSE
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:
111781 ACC: Rounding Errors Using Floating-Point Numbers
RESOLUTION
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.
Example of a Validation Rule
- Repeat steps 1 and 2 in the "Steps to Reproduce Behavior" section later
in this article.
- After setting the format to General Number, set the following properties
on the TestSingle field:
Validation rule: <=3.402823E+38
Validation text: The number you entered is too large for this field.
REFERENCES
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: kbprb KB181155