E
evilcowstare via AccessMonster.com
Hi, I have already tried looking at help and cant really find what I want to
do, or it could be that I just dont understand it.
I am trying to make 2 automatic calculations in my main form.
I have 4 fields...
Net Value called "netvalue"
Job Cost called "jobcost"
Margin called "margin"
and GP% called "GP"
The first 3 are all set up as currency with the default setting showing £0.00,
the GP is just a basic text box.
What I want it to do is that when the Net Value and Job Cost is entered it
automatically works out the Margin and GP for me and puts it in the relevant
box.
The calculation works like this...
For example
Net Value £500.00 - Job Cost £300.00 = £200 (this is the margin)
then
£200 (margin) / £500.00 (net value) = 0.4 (but needs to be shown as a
percentage of 40% in GP)
So in the end, the user has entered £500 into "netvalue" and £300 into
"jobcost and then the db has worked out that £200 goes into "margin and 40
goes into "GP"
Can anyone help me on how I need to do this or what the code is for it?
Thank You!!
Jay
do, or it could be that I just dont understand it.
I am trying to make 2 automatic calculations in my main form.
I have 4 fields...
Net Value called "netvalue"
Job Cost called "jobcost"
Margin called "margin"
and GP% called "GP"
The first 3 are all set up as currency with the default setting showing £0.00,
the GP is just a basic text box.
What I want it to do is that when the Net Value and Job Cost is entered it
automatically works out the Margin and GP for me and puts it in the relevant
box.
The calculation works like this...
For example
Net Value £500.00 - Job Cost £300.00 = £200 (this is the margin)
then
£200 (margin) / £500.00 (net value) = 0.4 (but needs to be shown as a
percentage of 40% in GP)
So in the end, the user has entered £500 into "netvalue" and £300 into
"jobcost and then the db has worked out that £200 goes into "margin and 40
goes into "GP"
Can anyone help me on how I need to do this or what the code is for it?
Thank You!!
Jay