On a report I have the following code
=Sum([PartQty]*[ModuleQty])
Example results are 2.1 or 2.6, what I need is for the valule to round up to read 3
On a report I have the following code
=Sum([PartQty]*[ModuleQty])
Example results are 2.1 or 2.6, what I need is for the valule to round up to read 3
you could do
=Int(Sum([PartQty]*[ModuleQty]))+1
I think. That would get the Int part of the sum (2) and then add 1. you might need to be a little more clever as this will probably give you 3 even if the sum is exactly 2, which is probably not what you want.
not tested it but something along these lines might work (access syntax is not that great, but should give you the right idea) :
Iif(Sum([PartQty]*[ModuleQty])-Int(Sum([PartQty]*[ModuleQty]))=0,
Sum([PartQty]*[ModuleQty]),
Int(Sum([PartQty]*[ModuleQty]))+1)