G
Guest
Hi All,
I would really appreicate if someone could help me with my IIF. I have a
Form called Claim setup with two subforms (Client and Purchases) within it.
I would like the user to be able to click on a command button that would run
a macro to set a value in a field in the form. I am having difficulties with
the IIF. This is what I have so far.
=IIf(Sum([totalelcost]*0.5)>[SaleyardRebate],[SaleyardRebate],Sum([totalelcost]*0.5))
The field [totalcost] is in subform [Purchases] and the field
[SaleyardRebate] is in Client. The field that I would like this information
to be displayed in is in the main form [Claim]. Am I doing something wrong?
Any help would be very much appreciated.
Thanks
Janine
I would really appreicate if someone could help me with my IIF. I have a
Form called Claim setup with two subforms (Client and Purchases) within it.
I would like the user to be able to click on a command button that would run
a macro to set a value in a field in the form. I am having difficulties with
the IIF. This is what I have so far.
=IIf(Sum([totalelcost]*0.5)>[SaleyardRebate],[SaleyardRebate],Sum([totalelcost]*0.5))
The field [totalcost] is in subform [Purchases] and the field
[SaleyardRebate] is in Client. The field that I would like this information
to be displayed in is in the main form [Claim]. Am I doing something wrong?
Any help would be very much appreciated.
Thanks
Janine