FurryGorilla
Technical User
Hi
I have a main form with a subform containing a sum of values on an order. The subform has a textbox named txtTotalNet which has it's control source set to '=Sum([Net])'. Because the records are displayed in datasheet view, I have a textbox on the main form with a control source of '=[frmPurchaseOrderTotals].[Form]![txtTotalNet]'. If there are records on the order the value is displayed correctly, however, when there are no records on the order the textbox has '#Error' inside. I've tried using an If statement with IsNull and IsEmpty as part of the control source but I don't seem to be having much luck.
Any help would be greatly appreciated.
Thanks
Chris
I have a main form with a subform containing a sum of values on an order. The subform has a textbox named txtTotalNet which has it's control source set to '=Sum([Net])'. Because the records are displayed in datasheet view, I have a textbox on the main form with a control source of '=[frmPurchaseOrderTotals].[Form]![txtTotalNet]'. If there are records on the order the value is displayed correctly, however, when there are no records on the order the textbox has '#Error' inside. I've tried using an If statement with IsNull and IsEmpty as part of the control source but I don't seem to be having much luck.
Any help would be greatly appreciated.
Thanks
Chris