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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to make the sum of two fields of a an Access table

Status
Not open for further replies.

MrBaRRon

Programmer
Aug 8, 2003
39
IT
Hi everybody,

I would like one field in an Access table be the sum of two others fields in this table.

Thank U.
 
Hi

First of all don't do it. There is no need to store such a value you can calculate it in a query

make a query based on your table, make a column:

MySum:Value1 + Value2

of in SQL terms

SELECT *, Value1 + Value2 As MySum FROM MyTable;

run the query

see what I mean

Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
Website needs upgrading, but for now - UK
 
Ok you are right, their is no need to create a field in the table to make the sum... I have tried as you say and it's ok.

Thank U very much for your interest.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top