Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to sum 2 collumns

Status
Not open for further replies.

DTLe

Technical User
Oct 22, 2009
3
0
0
DE
Dear all,

I am pretty new to Access so this might be some of those questions where the answer is really easy. for me it's still a problem i can't figure out.

My question is how to sum up for example costs from 2 different collumns.

example:

Toolingcosts = $200.000
Piece price = $230
Total price = is it possible to do something with the properties that it automatically sums up collumn toolingcosts and piece price so that the total costs (toolingcosts + piece price) will appear in the Total price collumn?


Kind regards,

D.T
 


Hi,

Total price collumn
It is not best and accepted database practice to store aggregations or calculated values.

These kinds of values are normally calculated in a query...
Code:
Select
  toolingcosts
, piece price
, toolingcosts + piece price As 'Total Price'

From [YourTable]
I would even question a field like toolingcost[red]s[/red] as it seems it might be an aggregation of some lower level detail.



Skip,
[sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top