Okay, now my formula returns the correct value but I need to do something
additional. I have two fields, LbsScrapValue and PcsScrapValue. These are
data entry fields in a form. Sometimes I will have the number of pounds and
sometimes I will have the number of pieces. When I have peices it needs to
convert to pounds. If there is a number typed in the PcsScrapValue field I
want the LbsScrapValue field to use the formula to return the conversion to
pounds in that field. But, i also want to be able to type a number into the
LbsScrapValue field and have it return that value. (I have both the data
entry form and the report where this data needs to print pulling from a
query) I used the following argument in the expression builder in the report
but its not working. What did I miss?
= [LbsScrapValue] Or IIf ([LbsScrapValue] = "0", (([Length] / 12) *
[WeightPerFoot])* [PcsScrapValue])
Just setting the control source of a textbox on the form will display the
result of the calculation, but not store it in the table. But maybe that's a
good thing!
The proper normalized design would be to store *ONE OR THE OTHER* of
LbsScrapValue and PcsScrpValue, not both. The problem if you store both in the
table is that they could be stored inconsistantly! Are these dollar amounts?
Is it legitimate for the LbsScrapValue to be *different* than this expression?
If not, then you should decide to store just one of them, and routinely
calculate the other one when it's needed.
I have a vague picture of what you're working on, but perhaps a bit of
explanation of your project would help.
P.S. I sure do appreciate your patience and the help you are giving me.
Like the other volunteers on the group, I just enjoy paying forward some of
the help I've gotten over the years.