Hello Everyone,
This is my first time posting to the Access side of the board. I’ve been asked to modify someone else’s Access db and I keep getting #Error in a field on their form.
This is what I’ve placed in the “Control Source” for the control named “txtSumProjectHours” :
=Sum(IIf([txtProjectNumber]=[BillingInformation]![Project Number],[BillingInformation]![Hours Worked],0))
What I would like to do is in txtSumProjectHours show the sum of hours for the project indicated in txtProjectNumber.
I did not add the control via clicking “add existing fields” but by clicking on text box on the Design tab--> controls-->Text Box.
The “Record Source” for the form is the table named “BillingInformation” and all of the fields in the txtSumProjectHours “Control Source” are fields in the table.
The form is used to log when an employees works on a project: logging date, start time, finish time and so on. Several different employees can work on the same project so there can be several records in the BillingInformation table with the same “Project Number”.
I’m new to access and not sure if what I want is possible so any suggestions will be greatly appreciated.
Thank You!
This is my first time posting to the Access side of the board. I’ve been asked to modify someone else’s Access db and I keep getting #Error in a field on their form.
This is what I’ve placed in the “Control Source” for the control named “txtSumProjectHours” :
=Sum(IIf([txtProjectNumber]=[BillingInformation]![Project Number],[BillingInformation]![Hours Worked],0))
What I would like to do is in txtSumProjectHours show the sum of hours for the project indicated in txtProjectNumber.
I did not add the control via clicking “add existing fields” but by clicking on text box on the Design tab--> controls-->Text Box.
The “Record Source” for the form is the table named “BillingInformation” and all of the fields in the txtSumProjectHours “Control Source” are fields in the table.
The form is used to log when an employees works on a project: logging date, start time, finish time and so on. Several different employees can work on the same project so there can be several records in the BillingInformation table with the same “Project Number”.
I’m new to access and not sure if what I want is possible so any suggestions will be greatly appreciated.
Thank You!