G
Guest
Hi,
First my apologies - I posted a question similar to this a couple of weeks
back, subsequently got sidetracked with other tasks and couldn't get back to
this problem until now. Hence the repost of my old question.
I have a form based on a query; on the form in the detail section is a
calculated control =[PACE_SUMM_HEDGE]/1000000+[Hedge_adj]-[Hedge_val]. Note:
the fields [PACE_SUMM_HEDGE] & [Hedge_adj] are from the query while
[Hedge_val] is the name of another calculated control (also in the detail
section). I have named this control "Hedges". This works fine.
I would like to sum this calculation in the footer section; my calculated
control has the formula =sum([Hedges]). This does NOT work - it returns
#Name?
As does the formula =Sum([PACE_SUMM_HEDGE]/1000000+[Hedge_adj]-[Hedge_val]).
As does the formula
=Sum([PACE_SUMM_HEDGE]/1000000+[Hedge_adj]-IIf([Forms]![Adjustments
Page]![Type Combo].[Value]="Hedges",[Forms]![Adjustments
Page]![Amount].[Value]*[Allocation]/100,0)).
I realize this last formula is messy - all the fields in this last formula
are from the query or another form that is open.
Any help? Why am I getting #Name? for each of these formulas?
Thanks
First my apologies - I posted a question similar to this a couple of weeks
back, subsequently got sidetracked with other tasks and couldn't get back to
this problem until now. Hence the repost of my old question.
I have a form based on a query; on the form in the detail section is a
calculated control =[PACE_SUMM_HEDGE]/1000000+[Hedge_adj]-[Hedge_val]. Note:
the fields [PACE_SUMM_HEDGE] & [Hedge_adj] are from the query while
[Hedge_val] is the name of another calculated control (also in the detail
section). I have named this control "Hedges". This works fine.
I would like to sum this calculation in the footer section; my calculated
control has the formula =sum([Hedges]). This does NOT work - it returns
#Name?
As does the formula =Sum([PACE_SUMM_HEDGE]/1000000+[Hedge_adj]-[Hedge_val]).
As does the formula
=Sum([PACE_SUMM_HEDGE]/1000000+[Hedge_adj]-IIf([Forms]![Adjustments
Page]![Type Combo].[Value]="Hedges",[Forms]![Adjustments
Page]![Amount].[Value]*[Allocation]/100,0)).
I realize this last formula is messy - all the fields in this last formula
are from the query or another form that is open.
Any help? Why am I getting #Name? for each of these formulas?
Thanks