Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 02-05-2003, 01:34 PM   #1
Member (9 bit)
 
Join Date: Nov 2002
Posts: 502
ms access

Is it possible to create a report in ms access that calculates a porcent based on total, but that at determined value change the porcent? for example all the sales before 200,000 wins 1.5 % of commission, and all the sales after 200,001 wins 2% of commission, all this detailed per invoice, but summin the values of each invoice in a runningsum, and the porcent based in this object.
easg is offline   Reply With Quote
Old 02-05-2003, 01:59 PM   #2
Professional gadfly
 
doctorgonzo's Avatar
 
Join Date: Jan 2002
Location: Minneapolis, MN
Posts: 6,364
Send a message via MSN to doctorgonzo
Yes, you could calculate varying levels of commission; the quick and dirty way would be to use an IIf as the data source for the text box on the form with something like this: =IIf([sales]>200000, ([sales]-200000)*.02+3000, [sales]*.015)

That would calculate the commission based on a 1.5% rate for the first $200,000 and 2% rate on any sales thereafter.

You can also do a running sum with the Sum() function.
doctorgonzo is offline   Reply With Quote
Old 02-05-2003, 05:11 PM   #3
Member (9 bit)
 
Join Date: Nov 2002
Posts: 502
I canīt use forms because the data comes from a external odbc database (a m-sdos based database), I need to use the code in the report in order to do this.
easg is offline   Reply With Quote
Old 02-05-2003, 05:15 PM   #4
Member (9 bit)
 
Join Date: Nov 2002
Posts: 502
Sorry I clic before ending the reply.

there could be more than two commission rates.
easg is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 12:29 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2