M
Mr F
Guest
I am using VBA in MS Access
I've problems with the 'double' data type.
It behaves like it is a 'long' data type.
For example:
Dim dblNumb1 As Double
Dim dblNumb2 As Double
dblNumb1 = 2147483647
'dblNumb2 = 2147483648 : this thoes not work VBA puts a # sign after the number.
In my code (where I get the overflow error) I receive the value for the double variable form a converted string value. But that's not the prob. Just testing it by giving the variable a number like shown above shows that the double variable can only handle numbers that I thought were numbers from a long datatype range (-2.147.483.648 till 2.147.483.647). The converted string values (always numbers) are sometimes larger that the values shown above. For that reason I used the double variables but...
Can someone help me with this problem?
Acts VBA diffrent in Access?
Does it have something to do whith my regional settings?
Thnx
I've problems with the 'double' data type.
It behaves like it is a 'long' data type.
For example:
Dim dblNumb1 As Double
Dim dblNumb2 As Double
dblNumb1 = 2147483647
'dblNumb2 = 2147483648 : this thoes not work VBA puts a # sign after the number.
In my code (where I get the overflow error) I receive the value for the double variable form a converted string value. But that's not the prob. Just testing it by giving the variable a number like shown above shows that the double variable can only handle numbers that I thought were numbers from a long datatype range (-2.147.483.648 till 2.147.483.647). The converted string values (always numbers) are sometimes larger that the values shown above. For that reason I used the double variables but...

Can someone help me with this problem?
Acts VBA diffrent in Access?
Does it have something to do whith my regional settings?
Thnx