ACC: Behavior of Query Differs for Byte Data in Microsoft Access 95 and Microsoft Access 97 (168875)
The information in this article applies to:
- Microsoft Access for Windows 95 7.0
- Microsoft Access 97
This article was previously published under Q168875 Moderate: Requires basic macro, coding, and interoperability skills.
SYMPTOMS
When you create an update query that calculates values for a Numeric field
whose FieldSize property is set to Byte, you may not get the results that
you expect when the calculated value in the field is larger than what the
Byte size data type can hold. The following behavior occurs if this
happens.
In Microsoft Access 7.0 and 97
------------------------------
The query updates the value in the field to the calculated value minus
256.
In Microsoft Access 2.0
-----------------------
The query does not update the field, and you receive a conversion error
message.
CAUSE
The Byte data type is used to store small, positive integers ranging from 0
to 255.
RESOLUTION
Use a different field size for your calculated field if you are going to be
creating calculations that exceed 255.
REFERENCES
For more information about field sizes, search the Help Index for "fields,
size," or ask the Microsoft Access 97 Office Assistant.
Modification Type: | Major | Last Reviewed: | 10/20/2003 |
---|
Keywords: | kbprb kbusage KB168875 |
---|
|