A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Percentage deduction Problem in Access Form



 
 
Thread Tools Display Modes
  #1  
Old April 12th, 2008, 09:50 PM posted to microsoft.public.access.forms
Rizk
external usenet poster
 
Posts: 2
Default Percentage deduction Problem in Access Form

Dear users,
I am stuck with a very simple problem but I really don't know how to solve it,
I have the bound Control Box which showing the Grand Total of the amount in
an invoice, and the format for this control is "Currency"
I have another Control Box which is showing the percentage of deduction from
the Grand Total.
ok now in the Third Control box i want to show the Net Amount which means
Grand Total minus deduction percentage,
Grand Total = 739.20
Deduction = 5.303%
Net Total should be = 700
in the Net Total I create unbound box and I write = [GrandTotal]-[Deduction]
what I am getting is 739.147, I know the way I am writing the code is the
same way I do it using a calculater and I know there is a very simple way to
write the code by access, so kindly help me. thanks a lot.
  #2  
Old April 13th, 2008, 06:10 AM posted to microsoft.public.access.forms
boblarson
external usenet poster
 
Posts: 886
Default Percentage deduction Problem in Access Form

Your calculation should be:

=[Grand Total] - ([Grand Total] * [Deduction])


--
Bob Larson
Access World Forums Super Moderator
Utter Access VIP
Tutorials at http://www.btabdevelopment.com

__________________________________


"Rizk" wrote:

Dear users,
I am stuck with a very simple problem but I really don't know how to solve it,
I have the bound Control Box which showing the Grand Total of the amount in
an invoice, and the format for this control is "Currency"
I have another Control Box which is showing the percentage of deduction from
the Grand Total.
ok now in the Third Control box i want to show the Net Amount which means
Grand Total minus deduction percentage,
Grand Total = 739.20
Deduction = 5.303%
Net Total should be = 700
in the Net Total I create unbound box and I write = [GrandTotal]-[Deduction]
what I am getting is 739.147, I know the way I am writing the code is the
same way I do it using a calculater and I know there is a very simple way to
write the code by access, so kindly help me. thanks a lot.

  #3  
Old April 13th, 2008, 06:16 AM posted to microsoft.public.access.forms
boblarson
external usenet poster
 
Posts: 886
Default Percentage deduction Problem in Access Form

Actually I got it wrong.

It should be

= 1-([Deduction]/100)*[Grand Total]
--
Bob Larson
Access World Forums Super Moderator
Utter Access VIP
Tutorials at http://www.btabdevelopment.com

__________________________________


"Rizk" wrote:

Dear users,
I am stuck with a very simple problem but I really don't know how to solve it,
I have the bound Control Box which showing the Grand Total of the amount in
an invoice, and the format for this control is "Currency"
I have another Control Box which is showing the percentage of deduction from
the Grand Total.
ok now in the Third Control box i want to show the Net Amount which means
Grand Total minus deduction percentage,
Grand Total = 739.20
Deduction = 5.303%
Net Total should be = 700
in the Net Total I create unbound box and I write = [GrandTotal]-[Deduction]
what I am getting is 739.147, I know the way I am writing the code is the
same way I do it using a calculater and I know there is a very simple way to
write the code by access, so kindly help me. thanks a lot.

  #4  
Old April 21st, 2008, 07:12 AM posted to microsoft.public.access.forms
Rizk
external usenet poster
 
Posts: 2
Default Percentage deduction Problem in Access Form

Hello bob,
thanks a lot,
it works, but without the 1- I only made it like
= ([Deduction]/100)*[Grand Total]
thanks again.
best regards.

"boblarson" wrote:

Actually I got it wrong.

It should be

= 1-([Deduction]/100)*[Grand Total]
--
Bob Larson
Access World Forums Super Moderator
Utter Access VIP
Tutorials at http://www.btabdevelopment.com

__________________________________


"Rizk" wrote:

Dear users,
I am stuck with a very simple problem but I really don't know how to solve it,
I have the bound Control Box which showing the Grand Total of the amount in
an invoice, and the format for this control is "Currency"
I have another Control Box which is showing the percentage of deduction from
the Grand Total.
ok now in the Third Control box i want to show the Net Amount which means
Grand Total minus deduction percentage,
Grand Total = 739.20
Deduction = 5.303%
Net Total should be = 700
in the Net Total I create unbound box and I write = [GrandTotal]-[Deduction]
what I am getting is 739.147, I know the way I am writing the code is the
same way I do it using a calculater and I know there is a very simple way to
write the code by access, so kindly help me. thanks a lot.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:38 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.