G
Guest
Hello.
I have a subform located on the footer of a Form.
I need to Sum everything in the subform "HrCost" field.
These are the form names:
Main form name: frm_ProjectDetails
Subform name: frm_ProjectDetailsSubform
I created a text box with the following Control Source.
=DSum("[HrCost]","tbl_MainDateServiceInfoSub","[Category]=[frm_ProjectDetails].[Form]![ProjectOrCategoryName]")
I get the #error on that field when I am in form view.
Is there an easier way of doing this or can you help me fix the code.
Thanks.
Your help is greatly appreciated.
Iram/mcp
I have a subform located on the footer of a Form.
I need to Sum everything in the subform "HrCost" field.
These are the form names:
Main form name: frm_ProjectDetails
Subform name: frm_ProjectDetailsSubform
I created a text box with the following Control Source.
=DSum("[HrCost]","tbl_MainDateServiceInfoSub","[Category]=[frm_ProjectDetails].[Form]![ProjectOrCategoryName]")
I get the #error on that field when I am in form view.
Is there an easier way of doing this or can you help me fix the code.
Thanks.
Your help is greatly appreciated.
Iram/mcp