Hi Daniel,
I'm not quite sure how to attach a sample database, but I'm just simply multiplying 3 fields which I've shown in my question - they are named length, width, height.
The example I gave is one row from the query where I've tried to make this calculation, and if I rounded to a whole number I'd get 9 but that doesn't give us enough precision as we're dealing with cubic meters - we'd like to go out to one or two decimals.
Using the equation you gave above, but simply substituting the field name in with brackets for the numbers, I get 8.89, which is incorrect.
I've used older versions of Access before, and used similar equations written the same exact way without any problems. The only difference is that then I had long numbers, and this time - to avoid rounding errors like possibly this one (?!) - I've imported
a table with values out to only one decimal.
I have read how to round (again and again) - although the help menu isn't much help (it doesn't return anything useful when I type in "round", but I've been all over the web and back, and it's seems that I'm using the function correctly:
round([field1]*[field2]*[field3], 1{or2})…only problem is that it gives me the wrong number.
To give you an idea of what this looks like:
length_m width_m height_m volume_m3
3.4 2.7 0.5 4.5 {should be 4.6}
3.5 2.9 0.9 8.9 {should be 9.1}
It really is just that simple, but it's giving me incorrect results.
Any ideas as to why?
Thanks!