1) I need to isolate numbers where the integer value is different to the double value, I.e. 123 <> 123.1.
2) store the integer values in a table.
3) delete any numbers that occur more than once. I.e 123.1, 123.2,123.3 stored as 123, 123, 123 would be deleted.
4) The final table will be used in a form to highlight areas where there should be more than one entry, such as 123.1, 123.2
I can achieve 1) and count the occurrences in 2) but draw a blank when updating the table with the count.
2) store the integer values in a table.
3) delete any numbers that occur more than once. I.e 123.1, 123.2,123.3 stored as 123, 123, 123 would be deleted.
4) The final table will be used in a form to highlight areas where there should be more than one entry, such as 123.1, 123.2
I can achieve 1) and count the occurrences in 2) but draw a blank when updating the table with the count.
Code:
INSERT INTO tempCollect ( Accession )
SELECT Int([AccessionNumber]) AS Expr1
FROM Herbarium_Collection
GROUP BY Int([AccessionNumber]), Herbarium_Collection.AccessionNumber
HAVING (((Herbarium_Collection.AccessionNumber)<>Int([Herbarium_Collection]![AccessionNumber])));
Code:
SELECT tempCollect.Accession, Count(tempCollect.Accession) AS CountOfAccession
FROM tempCollect
GROUP BY tempCollect.Accession;