aussie_user
Registered User.
- Local time
- Today, 10:44
- Joined
- Aug 6, 2002
- Messages
- 32
Hi,
I am building a database and would like to create a field in a query that totals several other fields. I haven't done any calculations before but understand that they can be done and the best place to do them is in a query. I did a search in this forum but could not locate a problem where there was an expression that just involved addition.
I have separate fields to track payments and would like to have a field that calculates the Payment To Date.
I tried
AmtPaidToDate: Sum([FirstPayment]+[SecondPayment]+[ThirdPayment]+[FourthPayment]+[FifthPayment]+[SixthPayment])
When I tried to run the query it said " You tried to execute a query that does not include the specified expression "ProjectID" as part of an aggregate function.
ProjectID is the Key Field in most of my tables and it is included in the query.
Can someone let me know how I would fit the ProjectID field into my expression?
Thanks.
I am building a database and would like to create a field in a query that totals several other fields. I haven't done any calculations before but understand that they can be done and the best place to do them is in a query. I did a search in this forum but could not locate a problem where there was an expression that just involved addition.
I have separate fields to track payments and would like to have a field that calculates the Payment To Date.
I tried
AmtPaidToDate: Sum([FirstPayment]+[SecondPayment]+[ThirdPayment]+[FourthPayment]+[FifthPayment]+[SixthPayment])
When I tried to run the query it said " You tried to execute a query that does not include the specified expression "ProjectID" as part of an aggregate function.
ProjectID is the Key Field in most of my tables and it is included in the query.
Can someone let me know how I would fit the ProjectID field into my expression?
Thanks.