1.1-int(1.1) returns results from 0.1 to 0.10000000000023 to any other apparently random number into a type "double" field, "remveg.accession number".
I have set the decimal points to 1 and still get the same result.
I have set the data type to "single" and this seems to consistently give the required answer but when I put this into an update query I get a "Data type mismatch in criteria expression" error, with or without the inverted commas..
Using the "X-int(X)" directly in the query only updates those records where the result is exactly "0.1", 3 out of 1500.
I have exported the table to Excel and get the same results using the formula "=if(a2-int(a2)=0.1, "A","")"
Only those records, cells, where the result is "0.1" are updated.
I have set the decimal points to 1 and still get the same result.
I have set the data type to "single" and this seems to consistently give the required answer but when I put this into an update query I get a "Data type mismatch in criteria expression" error, with or without the inverted commas..
Code:
UPDATE RemVeg SET RemVeg.Specimen = "A"
WHERE (([RemVeg]![Accession Number]="0.1"));
Using the "X-int(X)" directly in the query only updates those records where the result is exactly "0.1", 3 out of 1500.
I have exported the table to Excel and get the same results using the formula "=if(a2-int(a2)=0.1, "A","")"
Only those records, cells, where the result is "0.1" are updated.