ACC2000: Data Type of Value Overrides Data Type of VariableID: Q210549
|
Microsoft Access internally converts values with implicit data type definitions before assigning those values to variables. This may result in unexpected rounding of numbers, or in the following error message:
Invalid Number
You can implicitly define the data type of a value by appending a
type-declaration character at the end of the value.
To see how this works, follow these steps:
Dim v as Currency
v=123456789123.3456789#
debug.print v
Note that the value of the variable "v" is now 123456789123.346. The
number sign (#) implicitly defined the value as a double-precision
value. Microsoft Access internally converted the value to that data type
before assigning it to the currency variable.
Additional query words: ui misc prb
Keywords : kbprg kbdta
Version : WINDOWS:2000
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: May 13, 1999