ACC: Behavior of Query Differs for Byte Data in MS Access 95/97ID: Q168875
|
Novice: Requires knowledge of the user interface on single-user computers.
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.
The query does not update the field, and you receive a conversion error message.
The Byte data type is used to store small, positive integers ranging from 0 to 255.
Use a different field size for your calculated field if you are going to be creating calculations that exceed 255.
Table: Table1
--------------------
Field name: Field1
Data Type: Number
Field size: Byte
10, 15, 20
Query Values that are returned
----- ------------------------
One 20, 30, 40
Two 40, 60, 80
Three 80, 120, 160
Four 160, 240, 64
For more information about field sizes, search the Help Index for "fields, size," or ask the Microsoft Access 97 Office Assistant.
Keywords : kbusage QryUpdat QryProp
Version : 97
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: May 3, 1999