I created a table with a field called PercentOfFormula. Datatype is Single (wasn't sure what to use - this could be the problem).
I'm storing chemical formulas have 10% of this, 20% of that, and even fractions of a percent (ie .35%) of some trace ingredients. Since I needed the decimal to represent these fractions of a percent, I decided to use the aforementioned Single datatype.
After plugging in all my many ingredients and their percentages (only 2 fields in this easy table), I expected everything to add up to 100% when I did a quick check. This would confirm I entered everything correctly. I ran a Totals query using Sum() on that field since I didn't want to do it by hand. To my surprise, everything adds up to something like "0.999999968800694". This is REALLY weird because I never used more than 4 digits to the right of a decimal.
My guess is that its something to do with the datatype. I tried the Decimal datatype but it seemed like it only accepted whole numbers for some reason. Maybe I'm doing something wrong. It's been a long time since I've used Access.
A quick and dirty solution would be appreciated, although, I am willing to do a deep dive into the understanding of datatypes if you think it's prudent that I do so.
Thank you for any help,
Matt