G
Guest
Given:
An invisible textbox control (SubTBox) in the form footer of a subform sums
the values in Field07. A textbox control (ParentTBox) displays the value in
SubTBox whenever SubTBox changes.
Problem:
When there is no data on the subform, SubTBox returns #Error which is
displayed in ParentTBox. I have not been successful at handling the #Error
value and converting it to a more friendly indication (like displaying a
blank in ParentTBox instead of #Error).
Any modification of the formula in the controlsource property of ParentTBox
also results in #Error. The #Error value returned in SubTBox creates an
error in any formula that references it. Handling with
"=iif(IsError(SubTBox),"",SubTBox)" or other null/error functions still
produces #Error in ParentTBox.
Is there a best practice (or any work-around) to handle this common '#Error'
result ?
Note: The following artcle describes causes of #Error and resolutions for a
variety of situations, but it does not provide a final solution (or any
productive leads) for resolving #Error in a calculated control that depends
on form data from an empty form.
http://office.microsoft.com/en-us/access/HA011814481033.aspx?pid=CL100570041033
An invisible textbox control (SubTBox) in the form footer of a subform sums
the values in Field07. A textbox control (ParentTBox) displays the value in
SubTBox whenever SubTBox changes.
Problem:
When there is no data on the subform, SubTBox returns #Error which is
displayed in ParentTBox. I have not been successful at handling the #Error
value and converting it to a more friendly indication (like displaying a
blank in ParentTBox instead of #Error).
Any modification of the formula in the controlsource property of ParentTBox
also results in #Error. The #Error value returned in SubTBox creates an
error in any formula that references it. Handling with
"=iif(IsError(SubTBox),"",SubTBox)" or other null/error functions still
produces #Error in ParentTBox.
Is there a best practice (or any work-around) to handle this common '#Error'
result ?
Note: The following artcle describes causes of #Error and resolutions for a
variety of situations, but it does not provide a final solution (or any
productive leads) for resolving #Error in a calculated control that depends
on form data from an empty form.
http://office.microsoft.com/en-us/access/HA011814481033.aspx?pid=CL100570041033