New to Access, not to programming.
I have 2 tables. Call one Contacts, the other Costs
I am able to sum the costs for a single contact in a query (Costs Query)![Sum Of Bill Amount])
I want to use that sum in a field in a form (Bill Reduction Wksheet]!TotalCosts which will then calculate several items including the costs for that contact.
I have tried using Dlookup but that gets only the first item in the query sum line, not the total of all matching records.
I have tried using the following in the control source for [Total Costs] "=Dsum([Costs Query]![Sum Of Bill Amount],[Costs Query])" but that returns a null (#name?)
What am I doing wrong?
I have 2 tables. Call one Contacts, the other Costs
I am able to sum the costs for a single contact in a query (Costs Query)![Sum Of Bill Amount])
I want to use that sum in a field in a form (Bill Reduction Wksheet]!TotalCosts which will then calculate several items including the costs for that contact.
I have tried using Dlookup but that gets only the first item in the query sum line, not the total of all matching records.
I have tried using the following in the control source for [Total Costs] "=Dsum([Costs Query]![Sum Of Bill Amount],[Costs Query])" but that returns a null (#name?)
What am I doing wrong?