G
Guest
I have a query which is calculating "quantities" from information in a table.
The calculation includes a private function given to me by George Nicholson
and Nikos Yannacopoulous on 05/11/05 ( Access Database General Questions).
This part works well.
There are 2 fields to each calculation (containing a RoundUpDown function
and IIF function). I then want another query to calculate "costs" by adding
the values of two fields in the first query and multiplying by a value in a
related table.
This appears to work well, EXCEPT if the values of the two fields to be
added in the first query are 10 and 0 in which case the result is the price
multiplied by 100 instead of by 10. I don't know how anomalous (or not) the
results would be if the starting value were multiples of 10. (The values in
these fields will always be either 0 and number or number and 0).
Multiplying only one of the fields at a time results in the correct answer.
I can, of course use one field at a time and add them together later, but
there are 8 fields (1 field, 3 sets of 2 fields and 1 field) and there are 4
other queries with similar ("quantities") values that need to be brought to a
total price, therefore I had been hoping to deal with each quantities query
in 1 field of a "costs" query.
Is it something to do with the way the RoundUpDown private function is
working?
Crazy Lady
The calculation includes a private function given to me by George Nicholson
and Nikos Yannacopoulous on 05/11/05 ( Access Database General Questions).
This part works well.
There are 2 fields to each calculation (containing a RoundUpDown function
and IIF function). I then want another query to calculate "costs" by adding
the values of two fields in the first query and multiplying by a value in a
related table.
This appears to work well, EXCEPT if the values of the two fields to be
added in the first query are 10 and 0 in which case the result is the price
multiplied by 100 instead of by 10. I don't know how anomalous (or not) the
results would be if the starting value were multiples of 10. (The values in
these fields will always be either 0 and number or number and 0).
Multiplying only one of the fields at a time results in the correct answer.
I can, of course use one field at a time and add them together later, but
there are 8 fields (1 field, 3 sets of 2 fields and 1 field) and there are 4
other queries with similar ("quantities") values that need to be brought to a
total price, therefore I had been hoping to deal with each quantities query
in 1 field of a "costs" query.
Is it something to do with the way the RoundUpDown private function is
working?
Crazy Lady