S
Sandy
I know this should be simple but for some reason I am just not getting this.
I have a text box control on a continuous form as follows:
Name: lotCost
Control Source=IIf([qUnit]="each",[qPrice]*[qQty]*(Forms![Main
form].BuildQty),IIf([qUnit]="LOT",[qPrice]*[qQty]))
The control calculates perfectly in each row of the form.
In the Form Header I want to total the lotCost field.
In the header of the form, I have tried an unbound text box with
control source = sum([lotCost]) but it give me an #error.
Each time I play wiht the formula (eg using =nz([lotCost]) just to get
something to show up ) I get a message "database can not find the field
"forms" refered to in your expression" but then the field calculates
correctly.
I am stumped!
Any help would be greatly appreciated!
sandy
I have a text box control on a continuous form as follows:
Name: lotCost
Control Source=IIf([qUnit]="each",[qPrice]*[qQty]*(Forms![Main
form].BuildQty),IIf([qUnit]="LOT",[qPrice]*[qQty]))
The control calculates perfectly in each row of the form.
In the Form Header I want to total the lotCost field.
In the header of the form, I have tried an unbound text box with
control source = sum([lotCost]) but it give me an #error.
Each time I play wiht the formula (eg using =nz([lotCost]) just to get
something to show up ) I get a message "database can not find the field
"forms" refered to in your expression" but then the field calculates
correctly.
I am stumped!
Any help would be greatly appreciated!
sandy