Calculation for report

R

Ron Greenbank

I have a report finished except for one detail. It is an inventory report
that is straight forward for all items except one. I need to break down one
of the field entries based on a percentage that is entered in another field.
For example: Shipment of a certain weight.
90% of the shipment weight is one kind of commodity
10 % is another type. The arrive mixed and are
separated by machine.
If I can calculate one the other would be of course the remainder.
What I need to do is if the current field on the report matches this
commodity then do the calculation and show results on the report. Other
commodities are also part of the report so they do not need any further
manipulation. Just this one infrequent case.
I would appreciate any help you could offer.
Ron
 
M

Marshall Barton

Ron said:
I have a report finished except for one detail. It is an inventory report
that is straight forward for all items except one. I need to break down one
of the field entries based on a percentage that is entered in another field.
For example: Shipment of a certain weight.
90% of the shipment weight is one kind of commodity
10 % is another type. The arrive mixed and are
separated by machine.
If I can calculate one the other would be of course the remainder.
What I need to do is if the current field on the report matches this
commodity then do the calculation and show results on the report. Other
commodities are also part of the report so they do not need any further
manipulation. Just this one infrequent case.


I'm not sure what calculation you want to do, but maybe all
you need is tow text boxes, one for each of the two types.
The text boxes can use expressions like:

=IIf(typefield = certaintype, percentfield * weight, weight)

=IIf(typefield = certaintype, (1 - percentfield) * weight,
Null)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top