Click here to Skip to main content
15,886,788 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
I want to set formula in access database field.
eg.
my tabel fields are M1, M2 M3, Total
i want show addition of M1,M2,M3 in Total Field
Pls Help Me.

Thanks
Bhausaheb Funde.
Posted
Updated 30-Aug-11 21:21pm
v2

1 solution

SQL
SELECT (M1 + M2 + M3) AS Total FROM myTable


Or

SQL
INSERT INTO myTable (M1, M2, M3, Total) VALUES (@M1, @M2, @M3, @M1 + @M2 + @M3)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900