M
mcescher
Is there a way to do a logical AND on two numbers if they are a double?
I'm currently getting an overflow error.
Thanks,
Chris M.
I'm currently getting an overflow error.
Thanks,
Chris M.
What do you like to get as result?Is there a way to do a logical AND on two numbers if they are a double?
I'm currently getting an overflow error.
Is there a way to do a logical AND on two numbers if they are a double?
I'm currently getting an overflow error.
Stefan said:hi Chris,
What do you like to get as result?
mfG
--> stefan <--
Tim said:<<Stuff deleted >>
I think you have to stay within the boundaries of a Long integer. How big
are your numbers?
HTH
Tim F
Is there reason for that kind of code?Perhaps a little more information. I need to store the US States a
person is licensed to work in. Created a table with State names and a
StateCode. StateCode= 2^x where x is the number of the state.
StateCode StateName StateAbbr
1 Alabama AL
2 Alaska AK
4 Arizona AZ
8 Arkansas AR
If agent has a code of 7, then he can work in AL, AK, and AZ
....
You need to create a related table with
fields like this:
CompanyID foreign key to tblCompany.CompanyID
StateID foreign key to tblState.StateID
Allen said:That's not going to work. The Double doesn't have enough digits of precision
for that.
mcescher said:It should have enough. Paraphrased from Access help:
A Double will hold up to 1.79 E 308
My data is only up to 2.25 E 15 (I'm only storing positive integers)
mcescher said:OK, I'm a little confused, so IF I have a really big number stored in a
double.
i.e. 1.79769313486232E308
Then Access just fills in zeros after the first 15 digits? is that
correct?
One other question (realizing that I've created the above mentioned
table), could I have done a bitwise AND on a variant?
In the previous post the code referenced StateCode. So, his assumption
was correct, 50 states plus Washington DC.