English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

In my table I have 3 fields "Gross Income" & "Total Expenses" and "Net Income" I want my net income field to calculate by its own by deducting expenses from income, what would I write in the default value of my table properties, I can do it in my form but in my table, i find it hard.

2007-05-16 02:57:46 · 2 answers · asked by confused 1 in Computers & Internet Programming & Design

2 answers

Tables don't do mathematical calculations. Tables only store data. You'll need to write a macro or module or VBA application that will manipulate the data in the table.

2007-05-16 03:03:16 · answer #1 · answered by Scotty Doesnt Know 7 · 0 0

First, its not a great idea to store calculated items in the table, generate them on the fly.
Second, if you have to, and all data is entered via a form, you can use a trigger AfterUpdate().
Third, as best as I know, you cannot do it at the table level (at least till Access 2003).

Hope this helps

2007-05-16 10:08:22 · answer #2 · answered by albatross_singh 2 · 0 0

fedest.com, questions and answers